Commit 8b7ee30b authored by Brad King's avatar Brad King

libarchive: Do not use ST_NOATIME if not defined

Use the same pattern already used elsewhere in archive_read_disk_posix.c
to use ST_NOATIME only when defined.
parent 680fc0ed
......@@ -1390,9 +1390,11 @@ setup_current_filesystem(struct archive_read_disk *a)
t->current_filesystem->remote = 1;
#if defined(ST_NOATIME)
if (sfs.f_flag & ST_NOATIME)
t->current_filesystem->noatime = 1;
t->current_filesystem->noatime = 0;
/* Set maximum filename length. */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment