diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-02-02 10:48:06 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-02-02 10:48:06 +0000 |
commit | 04158e04591efea20f34c8dc83002e19056a5590 (patch) | |
tree | 1deace5081207ddefa831e024e5914a11a8aaeeb /util-linux | |
parent | 512c8ae0537ad2ffcb70db03ca50b532781ae799 (diff) | |
download | busybox-w32-04158e04591efea20f34c8dc83002e19056a5590.tar.gz busybox-w32-04158e04591efea20f34c8dc83002e19056a5590.tar.bz2 busybox-w32-04158e04591efea20f34c8dc83002e19056a5590.zip |
udhcpd: add code which rejects lease files with suspicious or old timestamp.
*: s/time(0)/time(NULL)/g
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/rtcwake.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/rtcwake.c b/util-linux/rtcwake.c index 6c399c746..9a73ba29c 100644 --- a/util-linux/rtcwake.c +++ b/util-linux/rtcwake.c | |||
@@ -159,7 +159,7 @@ int rtcwake_main(int argc UNUSED_PARAM, char **argv) | |||
159 | bb_error_msg_and_die("%s not enabled for wakeup events", rtcname); | 159 | bb_error_msg_and_die("%s not enabled for wakeup events", rtcname); |
160 | 160 | ||
161 | /* relative or absolute alarm time, normalized to time_t */ | 161 | /* relative or absolute alarm time, normalized to time_t */ |
162 | sys_time = time(0); | 162 | sys_time = time(NULL); |
163 | if (sys_time == (time_t)-1) | 163 | if (sys_time == (time_t)-1) |
164 | bb_perror_msg_and_die("read system time"); | 164 | bb_perror_msg_and_die("read system time"); |
165 | rtc_time = rtc_read_time(fd, utc); | 165 | rtc_time = rtc_read_time(fd, utc); |