]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix #8542 Display mtime instead of ctime in "estimate listing" output
authorEric Bollengier <eric@baculasystems.com>
Thu, 6 Jan 2022 15:11:21 +0000 (16:11 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:56:57 +0000 (13:56 +0200)
Align the "estimate listing" output on "find -ls" or "ls -l"

bacula/src/lib/attr.c

index 111bc2cac127f2797b8913fbdcb5417736d8bd30..f7fc546b7e28b769cc0325f21411b7b55968ff5a 100644 (file)
@@ -278,7 +278,7 @@ void print_ls_output(JCR *jcr, ATTR *attr, int message_type /* M_RESTORED */)
                 guid->uid_to_name(attr->statp.st_uid, en1, sizeof(en1)),
                 guid->gid_to_name(attr->statp.st_gid, en2, sizeof(en2)));
    p += sprintf(p, " %18.18s ", edit_int64(attr->statp.st_size, ec1));
-   p = encode_time(attr->statp.st_ctime, p);
+   p = encode_time(attr->statp.st_mtime, p);
    *p++ = ' ';
    *p++ = ' ';
    for (f=attr->ofname; *f && (p-buf) < (int)sizeof(buf)-10; ) {