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 /e2fsprogs/old_e2fsprogs/blkid/probe.c | |
parent | 512c8ae0537ad2ffcb70db03ca50b532781ae799 (diff) |
udhcpd: add code which rejects lease files with suspicious or old timestamp.
*: s/time(0)/time(NULL)/g
Diffstat (limited to 'e2fsprogs/old_e2fsprogs/blkid/probe.c')
-rw-r--r-- | e2fsprogs/old_e2fsprogs/blkid/probe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/e2fsprogs/old_e2fsprogs/blkid/probe.c b/e2fsprogs/old_e2fsprogs/blkid/probe.c index 48b240e98..1f7188e6d 100644 --- a/e2fsprogs/old_e2fsprogs/blkid/probe.c +++ b/e2fsprogs/old_e2fsprogs/blkid/probe.c @@ -562,7 +562,7 @@ blkid_dev blkid_verify(blkid_cache cache, blkid_dev dev) if (!dev) return NULL; - now = time(0); + now = time(NULL); diff = now - dev->bid_time; if ((now < dev->bid_time) || @@ -659,7 +659,7 @@ try_again: found_type: if (dev && type) { dev->bid_devno = st.st_rdev; - dev->bid_time = time(0); + dev->bid_time = time(NULL); dev->bid_flags |= BLKID_BID_FL_VERIFIED; cache->bic_flags |= BLKID_BIC_FL_CHANGED; |