projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa134cd
)
Use /var/lib/hwclock for adjtime, its really a state file rather than a
author
Glenn L McGrath
<bug1@ihug.co.nz>
Sun, 22 Feb 2004 08:33:37 +0000
(08:33 -0000)
committer
Glenn L McGrath
<bug1@ihug.co.nz>
Sun, 22 Feb 2004 08:33:37 +0000
(08:33 -0000)
config file, so it should be in /etc, FHS mentions it also.
util-linux/hwclock.c
patch
|
blob
|
history
diff --git
a/util-linux/hwclock.c
b/util-linux/hwclock.c
index 4c59ef055aee0e9d6fd01d126a22184f0a9def69..6f3411a38e41f89b8cb293424bdb90b9008af08a 100644
(file)
--- 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 );
}
}
-
-