[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    icecream/client
From:       Stephan Kulow <coolo () kde ! org>
Date:       2009-04-30 12:37:37
Message-ID: 1241095057.684942.7482.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 961593 by coolo:

make a special exception for - in rest args
(bnc#495786)


 M  +5 -1      arg.cpp  


--- trunk/icecream/client/arg.cpp #961592:961593
@@ -300,6 +300,10 @@
         string ifile;
         for ( ArgumentsList::iterator it = args.begin();
               it != args.end(); ) {
+            if ( it->first == "-") {
+                always_local = true;
+                break;
+            }
             if ( it->second != Arg_Rest || it->first.at( 0 ) == '-' )
                 ++it;
             else if ( ifile.empty() ) {
@@ -364,7 +368,7 @@
     }
 
     struct stat st;
-    if ( ofile.empty() || (!stat( ofile.c_str(), &st ) && !S_ISREG( st.st_mode)))
+    if ( ofile.empty() || (!stat( ofile.c_str(), &st ) && !S_ISREG( st.st_mode )))
         always_local = true;
 
     job.setFlags( args );
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic