]> Dogcows Code - chaz/tar/blobdiff - src/create.c
tar: another --atime-preserve race fix
[chaz/tar] / src / create.c
index 6eedb2efc6e1dafb668311d8ffe01cbd45287e40..0d22e9601d07164ebbef67923a6090b738d5ffe6 100644 (file)
@@ -1793,7 +1793,9 @@ dump_file0 (struct tar_stat_info *st, char const *name, char const *p)
              set_exit_status (TAREXIT_DIFFERS);
            }
          else if (atime_preserve_option == replace_atime_preserve
-                  && set_file_atime (fd, p, st->atime, fstatat_flags) != 0)
+                  && (set_file_atime (fd, parentfd, name,
+                                      st->atime, fstatat_flags)
+                      != 0))
            utime_error (p);
        }
 
This page took 0.020374 seconds and 4 git commands to generate.