summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-12-02 17:34:09 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-12-02 17:34:09 +0000
commit5fde1d91deeb28eafd76a0a27b29c6154a74de1b (patch)
tree69f63d1b475a39852524b2035075d11ead26c32a
parentab23f3e2ddc69ff0f2b022621bcbd6c7a37013e4 (diff)
Fix thinko on my part, we want to avoid setting mode to "r+" for
append, not for ascii.
-rw-r--r--libexec/ftpd/ftpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index f319b5500e1..4e3e30fd77b 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ftpd.c,v 1.60 1999/12/01 06:33:24 millert Exp $ */
+/* $OpenBSD: ftpd.c,v 1.61 1999/12/02 17:34:08 millert Exp $ */
/* $NetBSD: ftpd.c,v 1.15 1995/06/03 22:46:47 mycroft Exp $ */
/*
@@ -1022,7 +1022,7 @@ store(name, mode, unique)
struct stat st;
int fd;
- if (restart_point && type != TYPE_A)
+ if (restart_point && *mode != 'a')
mode = "r+";
if (unique && stat(name, &st) == 0) {