diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2002-02-16 14:02:57 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2002-02-16 14:02:57 +0000 |
commit | 8e7cf3debfd07c7e94b81628f1241dd94365e50b (patch) | |
tree | e2f91f77edf294240f564f7af4a65236d4604ed9 /usr.bin/fetch | |
parent | 911eb59369f28622c6e1ac7713b8adeac1c7fd39 (diff) | |
download | src-test2-8e7cf3debfd07c7e94b81628f1241dd94365e50b.tar.gz src-test2-8e7cf3debfd07c7e94b81628f1241dd94365e50b.zip |
Notes
Diffstat (limited to 'usr.bin/fetch')
-rw-r--r-- | usr.bin/fetch/fetch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/fetch/fetch.c b/usr.bin/fetch/fetch.c index 6d886228ad83..34ee02e68f3a 100644 --- a/usr.bin/fetch/fetch.c +++ b/usr.bin/fetch/fetch.c @@ -549,8 +549,8 @@ fetch(char *URL, const char *path) tv[0].tv_sec = (long)(us.atime ? us.atime : us.mtime); tv[1].tv_sec = (long)us.mtime; tv[0].tv_usec = tv[1].tv_usec = 0; - if (utimes(path, tv)) - warn("%s: utimes()", path); + if (utimes(tmppath ? tmppath : path, tv)) + warn("%s: utimes()", tmppath ? tmppath : path); } /* timed out or interrupted? */ |