mirror of
https://github.com/sheumann/hush.git
synced 2024-12-28 07:30:23 +00:00
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.
This commit is contained in:
parent
fa134cd954
commit
f461e0123d
@ -171,7 +171,7 @@ int from_sys_clock ( int utc )
|
|||||||
int check_utc ( void )
|
int check_utc ( void )
|
||||||
{
|
{
|
||||||
int utc = 0;
|
int utc = 0;
|
||||||
FILE *f = fopen ( "/etc/adjtime", "r" );
|
FILE *f = fopen ( "/var/lib/hwclock/adjtime", "r" );
|
||||||
|
|
||||||
if ( f ) {
|
if ( f ) {
|
||||||
char buffer [128];
|
char buffer [128];
|
||||||
@ -254,5 +254,3 @@ extern int hwclock_main ( int argc, char **argv )
|
|||||||
return show_clock ( utc );
|
return show_clock ( utc );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user