diff options
| author | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2004-02-07 14:38:04 +0000 |
|---|---|---|
| committer | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2004-02-07 14:38:04 +0000 |
| commit | 3f8b9cfe8558553bb9940d0772835f39166f339e (patch) | |
| tree | b62390113c0b028952e43d042ea4ed85276bb7fb /libexec | |
| parent | 6ed6b4ab71594cf9c47c86f038de779369634437 (diff) | |
Notes
Diffstat (limited to 'libexec')
| -rw-r--r-- | libexec/ftpd/ftpd.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 27182de26394..9976967a9f09 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -2449,7 +2449,11 @@ delete(char *name) } goto done; } - if ((guest && noguestmod) || unlink(name) < 0) { + if (guest && noguestmod) { + reply(550, "Operation not permitted"); + return; + } + if (unlink(name) < 0) { perror_reply(550, name); return; } |
