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

List:       kde-commits
Subject:    kdenonbeta/icecream/icecream/client
From:       Stephan Kulow <coolo () kde ! org>
Date:       2005-01-17 11:07:49
Message-ID: 20050117110749.3E3F41B492 () office ! kde ! org
[Download RAW message or body]

CVS commit by coolo: 

don't f*** the system just because the kernel's Makefiles say so
(no idea why they think gcc -o /dev/null doesn't do anything to that file)


  M +7 -0      arg.cpp   1.26


--- kdenonbeta/icecream/icecream/client/arg.cpp  #1.25:1.26
@@ -31,4 +31,7 @@
 #include <assert.h>
 
+#include <sys/types.h>
+#include <sys/stat.h>
+
 #include "client.h"
 
@@ -303,4 +306,8 @@ bool analyse_argv( const char * const *a
     }
 
+    struct stat st;
+    if ( !stat( ofile.c_str(), &st ) && !S_ISREG( st.st_mode ))
+        always_local = true;
+
     job.setFlags( args );
     job.setOutputFile( ofile );


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

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