[BusyBox-cvs] busybox/util-linux hwclock.c,1.6,1.7
Glenn McGrath
bug1 at busybox.net
Sun Feb 22 08:33:39 UTC 2004
Update of /var/cvs/busybox/util-linux
In directory nail:/tmp/cvs-serv945/util-linux
Modified Files:
hwclock.c
Log Message:
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.
Index: hwclock.c
===================================================================
RCS file: /var/cvs/busybox/util-linux/hwclock.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- a/hwclock.c 26 Aug 2003 11:06:39 -0000 1.6
+++ b/hwclock.c 22 Feb 2004 08:33:37 -0000 1.7
@@ -171,7 +171,7 @@
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 @@
return show_clock ( utc );
}
}
-
-
More information about the busybox-cvs
mailing list