aboutsummaryrefslogtreecommitdiff
path: root/util-linux/hwclock.c
diff options
context:
space:
mode:
authorbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-02-22 08:33:37 +0000
committerbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-02-22 08:33:37 +0000
commitf0d93891e71e4f483cb82b0ac111eebdea28b6dc (patch)
treeb6588e64877525f829f0198129762edcbc904b4c /util-linux/hwclock.c
parente6dde943ec09e29f07ff58061aef91423377545c (diff)
downloadbusybox-w32-f0d93891e71e4f483cb82b0ac111eebdea28b6dc.tar.gz
busybox-w32-f0d93891e71e4f483cb82b0ac111eebdea28b6dc.tar.bz2
busybox-w32-f0d93891e71e4f483cb82b0ac111eebdea28b6dc.zip
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. git-svn-id: svn://busybox.net/trunk/busybox@8541 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'util-linux/hwclock.c')
-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 )
171int check_utc ( void ) 171int check_utc ( void )
172{ 172{
173 int utc = 0; 173 int utc = 0;
174 FILE *f = fopen ( "/etc/adjtime", "r" ); 174 FILE *f = fopen ( "/var/lib/hwclock/adjtime", "r" );
175 175
176 if ( f ) { 176 if ( f ) {
177 char buffer [128]; 177 char buffer [128];
@@ -254,5 +254,3 @@ extern int hwclock_main ( int argc, char **argv )
254 return show_clock ( utc ); 254 return show_clock ( utc );
255 } 255 }
256} 256}
257
258