mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
The utc variable was not modified according to the -u/-l command line
parameters.
This commit is contained in:
parent
bfb51574ae
commit
c8685ead57
@ -213,7 +213,13 @@ 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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user