Some "use chroot" improvements.
[rsync.git] / tls.c
diff --git a/tls.c b/tls.c
index c50fa6c3e81bc8f87c5b842b873e58428324db2c..e6b0708ad3f0538a9da01c6fcbd8cc985db7d227 100644 (file)
--- a/tls.c
+++ b/tls.c
@@ -2,7 +2,7 @@
  * Trivial ls for comparing two directories after running an rsync.
  *
  * Copyright (C) 2001, 2002 Martin Pool <mbp@samba.org>
- * Copyright (C) 2003-2020 Wayne Davison
+ * Copyright (C) 2003-2022 Wayne Davison
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -60,7 +60,8 @@ int nsec_times = 0;
 
 static int stat_xattr(const char *fname, STRUCT_STAT *fst)
 {
-       int mode, rdev_major, rdev_minor, uid, gid, len;
+       unsigned int mode;
+       int rdev_major, rdev_minor, uid, gid, len;
        char buf[256];
 
        if (am_root >= 0 || IS_DEVICE(fst->st_mode) || IS_SPECIAL(fst->st_mode))
@@ -159,7 +160,7 @@ static void list_file(const char *fname)
        if (do_lstat(fname, &buf) < 0)
                failed("stat", fname);
 #ifdef SUPPORT_CRTIMES
-       if (display_crtimes && (crtime = get_create_time(fname)) == 0)
+       if (display_crtimes && (crtime = get_create_time(fname, &buf)) == 0)
                failed("get_create_time", fname);
 #endif
 #ifdef SUPPORT_XATTRS