summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2004-01-07 19:28:31 +0000
committerEric Anholt <anholt@FreeBSD.org>2004-01-07 19:28:31 +0000
commitc83098a31dd6ce5bd93de7ab7b16d9f52f20c96f (patch)
treefa26d2e73477a3460836434653bfca85e3822af6
parent9163fadb70114e1aa158d85966c50d89dec60469 (diff)
Notes
-rw-r--r--libexec/ftpd/ftpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index 40741f055bd6..7d685b5de1dd 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -2441,7 +2441,7 @@ delete(char *name)
}
goto done;
}
- if (unlink(name) < 0) {
+ if ((guest && noguestmod) || unlink(name) < 0) {
perror_reply(550, name);
return;
}