diff options
author | des <des@FreeBSD.org> | 2000-01-07 10:59:12 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2000-01-07 10:59:12 +0000 |
commit | 1e930b38f85120ad766f987dbbe256d25f9f5fc2 (patch) | |
tree | f796672a55f7c9e6ba03a7cb4902b9ebcb02e504 /lib/libfetch/file.c | |
parent | 5a9ffb7f5aae940fea91a0088b42469832041093 (diff) | |
download | FreeBSD-src-1e930b38f85120ad766f987dbbe256d25f9f5fc2.zip FreeBSD-src-1e930b38f85120ad766f987dbbe256d25f9f5fc2.tar.gz |
Patches I've had lying around for several months:
* Add the 'h' ftp flag (allocate local port in high range)
* Add the 'd' flag (use direct connection even if proxy is defined)
* Make sure flags != NULL before calling strchr().
* Minor changes to some comments.
Diffstat (limited to 'lib/libfetch/file.c')
-rw-r--r-- | lib/libfetch/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libfetch/file.c b/lib/libfetch/file.c index 5b594c4..d00f2d6 100644 --- a/lib/libfetch/file.c +++ b/lib/libfetch/file.c @@ -55,7 +55,7 @@ fetchPutFile(struct url *u, char *flags) { FILE *f; - if (strchr(flags, 'a')) + if (flags && strchr(flags, 'a')) f = fopen(u->doc, "a"); else f = fopen(u->doc, "w"); |