X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fextract.c;h=2689f547684a317574927089cb6069f9fc770376;hb=c641a16cba34ec0b0f1fb41dcdd7a27c9b760a83;hp=d826371683a62a2f4d4ca5160a0a3f49974b75c4;hpb=65a7536d1fccd2890ec7d9e806cb5d1ad438282d;p=chaz%2Ftar diff --git a/src/extract.c b/src/extract.c index d826371..2689f54 100644 --- a/src/extract.c +++ b/src/extract.c @@ -262,7 +262,10 @@ set_stat (char const *file_name, /* FIXME: incremental_option should set ctime too, but how? */ struct timespec ts[2]; - ts[0] = incremental_option ? st->atime : start_time; + if (incremental_option) + ts[0] = st->atime; + else + ts[0] = start_time; ts[1] = st->mtime; if (utimens (file_name, ts) != 0)