← Commit list

f461e0123

Glenn L McGrath
Glenn L McGrath
2004-02-22
FAILED Duration: 90s

Subject

Use /var/lib/hwclock for adjtime, its really a state file rather than a config file, so it should be in /etc, FHS mentions it also.

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

util-linux/hwclock.c+1 -3
@@ -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 );
}
}
-
-