Use /var/lib/hwclock for adjtime, its really a state file rather than a
authorGlenn L McGrath <bug1@ihug.co.nz>
Sun, 22 Feb 2004 08:33:37 +0000 (08:33 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Sun, 22 Feb 2004 08:33:37 +0000 (08:33 -0000)
config file, so it should be in /etc, FHS mentions it also.

util-linux/hwclock.c

index 4c59ef055aee0e9d6fd01d126a22184f0a9def69..6f3411a38e41f89b8cb293424bdb90b9008af08a 100644 (file)
@@ -171,7 +171,7 @@ int from_sys_clock ( int utc )
 int check_utc ( void )
 {
        int utc = 0;
-       FILE *f = fopen ( "/etc/adjtime", "r" );
+       FILE *f = fopen ( "/var/lib/hwclock/adjtime", "r" );
        
        if ( f ) {
                char buffer [128];
@@ -254,5 +254,3 @@ extern int hwclock_main ( int argc, char **argv )
                return show_clock ( utc );      
        }       
 }
-
-