diff options
author | Denis Vlasenko | 2009-02-02 10:48:06 +0000 |
---|---|---|
committer | Denis Vlasenko | 2009-02-02 10:48:06 +0000 |
commit | 04158e04591efea20f34c8dc83002e19056a5590 (patch) | |
tree | 1deace5081207ddefa831e024e5914a11a8aaeeb /runit | |
parent | 512c8ae0537ad2ffcb70db03ca50b532781ae799 (diff) | |
download | busybox-04158e04591efea20f34c8dc83002e19056a5590.zip busybox-04158e04591efea20f34c8dc83002e19056a5590.tar.gz |
udhcpd: add code which rejects lease files with suspicious or old timestamp.
*: s/time(0)/time(NULL)/g
Diffstat (limited to 'runit')
-rw-r--r-- | runit/sv.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -445,7 +445,7 @@ int sv_main(int argc, char **argv) service = argv; services = argc - 1; - tnow = time(0) + 0x400000000000000aULL; + tnow = time(NULL) + 0x400000000000000aULL; tstart = tnow; curdir = open_read("."); if (curdir == -1) @@ -592,7 +592,7 @@ int sv_main(int argc, char **argv) } if (want_exit) break; usleep(420000); - tnow = time(0) + 0x400000000000000aULL; + tnow = time(NULL) + 0x400000000000000aULL; } return rc > 99 ? 99 : rc; } |