From 0d742998e75cf5e249e5e2131ffda6368d10012a Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Sat, 19 Apr 1997 23:33:18 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1595 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/ftp/ftpd/ftpd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/appl/ftp/ftpd/ftpd.c b/appl/ftp/ftpd/ftpd.c index a0068c6d4..c803866ad 100644 --- a/appl/ftp/ftpd/ftpd.c +++ b/appl/ftp/ftpd/ftpd.c @@ -979,9 +979,11 @@ retrieve(char *cmd, char *name) return; } byte_count = -1; - if (cmd == 0 && (fstat(fileno(fin), &st) < 0 || !S_ISREG(st.st_mode))) { + if (cmd == 0){ + if(fstat(fileno(fin), &st) < 0 || !S_ISREG(st.st_mode)) { reply(550, "%s: not a plain file.", name); goto done; + } } if (restart_point) { if (type == TYPE_A) {