2013-02-19 08:30:08 +00:00
|
|
|
diff --git a/src/create.c b/src/create.c
|
|
|
|
index 43b5a4c..f98cbb5 100644
|
|
|
|
--- a/src/create.c
|
|
|
|
+++ b/src/create.c
|
|
|
|
@@ -1798,7 +1798,8 @@ dump_file0 (struct tar_stat_info *st, char const *name, char const *p)
|
2009-05-15 11:31:43 +00:00
|
|
|
}
|
|
|
|
else if (atime_preserve_option == replace_atime_preserve
|
2013-02-19 08:30:08 +00:00
|
|
|
&& fd && (is_dir || original_size != 0)
|
2010-10-26 13:19:12 +00:00
|
|
|
- && set_file_atime (fd, parentfd, name, st->atime) != 0)
|
|
|
|
+ && set_file_atime (fd, parentfd, name, st->atime) != 0
|
2009-05-15 11:31:43 +00:00
|
|
|
+ && errno != EROFS )
|
|
|
|
utime_error (p);
|
|
|
|
}
|
|
|
|
|