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 /e2fsprogs/old_e2fsprogs/ext2fs/bb_inode.c | |
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 'e2fsprogs/old_e2fsprogs/ext2fs/bb_inode.c')
-rw-r--r-- | e2fsprogs/old_e2fsprogs/ext2fs/bb_inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/e2fsprogs/old_e2fsprogs/ext2fs/bb_inode.c b/e2fsprogs/old_e2fsprogs/ext2fs/bb_inode.c index 855f86e..1deae54 100644 --- a/e2fsprogs/old_e2fsprogs/ext2fs/bb_inode.c +++ b/e2fsprogs/old_e2fsprogs/ext2fs/bb_inode.c @@ -125,9 +125,9 @@ errcode_t ext2fs_update_bb_inode(ext2_filsys fs, ext2_badblocks_list bb_list) if (retval) goto cleanup; - inode.i_atime = inode.i_mtime = time(0); + inode.i_atime = inode.i_mtime = time(NULL); if (!inode.i_ctime) - inode.i_ctime = time(0); + inode.i_ctime = time(NULL); inode.i_blocks = rec.bad_block_count * (fs->blocksize / 512); inode.i_size = rec.bad_block_count * fs->blocksize; |