summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}