diff options
author | kientzle <kientzle@FreeBSD.org> | 2007-04-14 22:20:31 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2007-04-14 22:20:31 +0000 |
commit | d7e5af0175ad9acf090a0f95a484847cfcf3b392 (patch) | |
tree | 59467e7f1f5c543347964d9e8d99e662e12a8f7e /lib/libarchive | |
parent | 1c12f58815d47eb92cdd273abf43ea07839ee55d (diff) | |
download | FreeBSD-src-d7e5af0175ad9acf090a0f95a484847cfcf3b392.zip FreeBSD-src-d7e5af0175ad9acf090a0f95a484847cfcf3b392.tar.gz |
Invoke utime(2) properly. (It's only used on platforms
that lack utimes(2).)
Diffstat (limited to 'lib/libarchive')
-rw-r--r-- | lib/libarchive/archive_write_disk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libarchive/archive_write_disk.c b/lib/libarchive/archive_write_disk.c index dc10c7b..f7ea41f 100644 --- a/lib/libarchive/archive_write_disk.c +++ b/lib/libarchive/archive_write_disk.c @@ -897,7 +897,7 @@ _archive_write_close(struct archive *_a) times.modtime = p->mtime; times.actime = p->atime; - utime(p->name, times); + utime(p->name, ×); #endif } if (p->fixup & TODO_MODE_BASE) @@ -1452,7 +1452,7 @@ set_time(struct archive_write_disk *a) times.modtime = st->st_mtime; times.actime = st->st_atime; - if (!S_ISLNK(a->mode) && utimes(a->name, times) != 0) { + if (!S_ISLNK(a->mode) && utime(a->name, ×) != 0) { archive_set_error(&a->archive, errno, "Can't update time for %s", a->name); return (ARCHIVE_WARN); |