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:
bfb5157
)
The utc variable was not modified according to the -u/-l command line
author
Robert Griebl
<griebl@gmx.de>
Sun, 21 Mar 2004 18:01:46 +0000
(18:01 -0000)
committer
Robert Griebl
<griebl@gmx.de>
Sun, 21 Mar 2004 18:01:46 +0000
(18:01 -0000)
parameters.
util-linux/hwclock.c
patch
|
blob
|
history
diff --git
a/util-linux/hwclock.c
b/util-linux/hwclock.c
index fae511f9c93c5ca9d1ee6b05fe9423fd47db202e..cf631131bfdc3dba7d548e25e20277e094127685 100644
(file)
--- a/
util-linux/hwclock.c
+++ b/
util-linux/hwclock.c
@@
-213,10
+213,16
@@
static const struct option hwclock_long_options[] = {
}
/* If -u or -l wasnt give check if we are using utc */
- if ((opt & (HWCLOCK_OPT_UTC | HWCLOCK_OPT_LOCALTIME)) == 0) {
+ if (opt & HWCLOCK_OPT_UTC) {
+ utc = 1;
+ }
+ else if (opt & HWCLOCK_OPT_LOCALTIME) {
+ utc = 0;
+ }
+ else {
utc = check_utc();
}
-
+
if (opt & HWCLOCK_OPT_HCTOSYS) {
return to_sys_clock ( utc );
}