Whamcloud - gitweb
e2image: fix typo which causes a compile failure on i386
authorTheodore Ts'o <tytso@mit.edu>
Thu, 2 May 2024 03:02:31 +0000 (23:02 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 2 May 2024 03:02:31 +0000 (23:02 -0400)
Fixes: 80abfebc673b ("e2image: add support for post-2038 dates...")
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/e2image.c

index 2c46d3f..a926724 100644 (file)
@@ -297,7 +297,7 @@ static void write_image_file(ext2_filsys fs, int fd)
 #if (SIZEOF_TIME_T > 4)
        hdr.image_time_hi = ext2fs_cpu_to_le32(now >> 32);
 #else
-       hdr_image_time_hi = 0;
+       hdr.image_time_hi = 0;
 #endif
        write_header(fd, &hdr, sizeof(struct ext2_image_hdr), fs->blocksize);
 }