diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-21 04:59:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-21 04:59:33 +0000 |
commit | 73193347133e750faf27f88fd3ab31ce43aff062 (patch) | |
tree | e28a6d9512d1787b1fcbe9167188c9d134bf51d9 /misc/findsuper.c | |
parent | Adding upstream version 1.47.0. (diff) | |
download | e2fsprogs-upstream.tar.xz e2fsprogs-upstream.zip |
Adding upstream version 1.47.1.upstream/1.47.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'misc/findsuper.c')
-rw-r--r-- | misc/findsuper.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/misc/findsuper.c b/misc/findsuper.c index 7e78c1f..8f275ea 100644 --- a/misc/findsuper.c +++ b/misc/findsuper.c @@ -81,8 +81,6 @@ * */ -#define _FILE_OFFSET_BITS 64 - #include "config.h" #include <stdio.h> #include <stdlib.h> @@ -230,10 +228,9 @@ int main(int argc, char *argv[]) WHY("free_inodes_count > inodes_count (%u > %u)\n", ext2.s_free_inodes_count, ext2.s_inodes_count); - if (ext2.s_mkfs_time != 0) - tm = ext2.s_mkfs_time; - else - tm = ext2.s_mtime; + tm = ext2fs_get_tstamp(ext2, s_mkfs_time); + if (tm == 0) + tm = ext2fs_get_tstamp(ext2, s_mtime); s = ctime(&tm); s[24] = 0; bsize = 1 << (ext2.s_log_block_size + 10); |