diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2006-11-10 22:05:41 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2006-11-10 22:05:41 +0000 |
| commit | 1bac3abc07a848cfa413b0234615bfe28ce4e37d (patch) | |
| tree | 2950e4a38cb2256ea074fe310a0f552cda912376 /usr.bin/fetch | |
| parent | 6d6da6898a18e2769c5a1710bfc8ebef78b85f78 (diff) | |
Notes
Diffstat (limited to 'usr.bin/fetch')
| -rw-r--r-- | usr.bin/fetch/fetch.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/fetch/fetch.c b/usr.bin/fetch/fetch.c index 027c6f628ea1..d19a25703f27 100644 --- a/usr.bin/fetch/fetch.c +++ b/usr.bin/fetch/fetch.c @@ -569,6 +569,8 @@ fetch(char *URL, const char *path) if (tmppath != NULL) { mkstemps(tmppath, strlen(slash) + 1); of = fopen(tmppath, "w"); + chown(tmppath, sb.st_uid, sb.st_gid); + chmod(tmppath, sb.st_mode & ALLPERMS); } } if (of == NULL) |
