diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2000-09-02 09:48:34 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2000-09-02 09:48:34 +0000 |
commit | 74912943bf6270b6879ef0728344672a891575b0 (patch) | |
tree | 89765dd4bb6a5c0e68b0e94b642ccb5d99627c61 /usr.bin/fetch | |
parent | 939c32909c85eaa48396b13f2f7c948e31c25b42 (diff) | |
download | src-test2-74912943bf6270b6879ef0728344672a891575b0.tar.gz src-test2-74912943bf6270b6879ef0728344672a891575b0.zip |
Notes
Diffstat (limited to 'usr.bin/fetch')
-rw-r--r-- | usr.bin/fetch/fetch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/fetch/fetch.c b/usr.bin/fetch/fetch.c index d72814b8ba08..b33fb037850b 100644 --- a/usr.bin/fetch/fetch.c +++ b/usr.bin/fetch/fetch.c @@ -385,7 +385,8 @@ fetch(char *URL, char *path) stat_end(&xs); /* Set mtime of local file */ - if (!n_flag && us.mtime && !o_stdout) { + if (!n_flag && us.mtime && !o_stdout + && (stat(path, &sb) != -1) && sb.st_mode & S_IFREG) { struct timeval tv[2]; fflush(of); |