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

List:       kde-commits
Subject:    KDE/kdebase/workspace/ksplash/ksplashx
From:       Luboš Luňák <l.lunak () kde ! org>
Date:       2007-08-28 15:35:14
Message-ID: 1188315314.033651.6899.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 705787 by lunakl:

Require exactly the same timestamp for the cached file, not just newer.



 M  +2 -2      splash.cpp  


--- trunk/KDE/kdebase/workspace/ksplash/ksplashx/splash.cpp #705786:705787
@@ -166,7 +166,7 @@
         fprintf( stderr, "FINDFILE2: %s %s\n", name, tmp );
 #endif
         struct stat stat_buf;
-        if( stat( tmp, &stat_buf ) != 0 || stat_buf.st_mtime < timestamp )
+        if( stat( tmp, &stat_buf ) != 0 || stat_buf.st_mtime != timestamp )
             {
             tmp[ 0 ] = '\0';
 #ifdef DEBUG
@@ -235,7 +235,7 @@
         nice( 10 );
         sleep( 30 );
         char* args[ 20 ];
-        args[ 0 ] = "ksplashx_scale";
+        args[ 0 ] = const_cast< char* >( "ksplashx_scale" );
         args[ 1 ] = theme_name;
         args[ 2 ] = ( char* ) file;
         args[ 3 ] = ( char* ) real_file;
[prev in list] [next in list] [prev in thread] [next in thread] 

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