diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2002-11-13 16:04:20 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2002-11-13 16:04:20 +0000 |
| commit | a6266f245c894998067a063151b8f86b1a48e6d0 (patch) | |
| tree | 313fb4aaccd4b2e8ecb8323808f25838320774a0 /usr.bin/fetch | |
| parent | a96acd1ace7a8db8ad20647f9cd203ba8196f400 (diff) | |
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 1cccc3a467ea..c40b8b6553d9 100644 --- a/usr.bin/fetch/fetch.c +++ b/usr.bin/fetch/fetch.c @@ -572,8 +572,8 @@ fetch(char *URL, const char *path) */ signal: /* set mtime of local file */ - if (!n_flag && us.mtime && !o_stdout - && (stat(path, &sb) != -1) && sb.st_mode & S_IFREG) { + if (!n_flag && us.mtime && !o_stdout && of != NULL && + (stat(path, &sb) != -1) && sb.st_mode & S_IFREG) { struct timeval tv[2]; fflush(of); |
