From 5fde1d91deeb28eafd76a0a27b29c6154a74de1b Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 2 Dec 1999 17:34:09 +0000 Subject: Fix thinko on my part, we want to avoid setting mode to "r+" for append, not for ascii. --- libexec/ftpd/ftpd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libexec/ftpd/ftpd.c') 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) { -- cgit v1.2.3