aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2004-02-22 08:33:37 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2004-02-22 08:33:37 +0000
commitf461e0123d08fe73d4ddfe0473a3e9d7e8555ddd (patch)
treeb6588e64877525f829f0198129762edcbc904b4c
parentfa134cd954a7912b1f6ba17557a00d120a90f927 (diff)
downloadbusybox-f461e0123d08fe73d4ddfe0473a3e9d7e8555ddd.tar.gz
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.
-rw-r--r--util-linux/hwclock.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/util-linux/hwclock.c b/util-linux/hwclock.c
index 4c59ef055..6f3411a38 100644
--- a/util-linux/hwclock.c
+++ b/util-linux/hwclock.c
@@ -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 );
}
}
-
-