perror_reply() should not be used where errno isn't meaningful.
This commit is contained in:
parent
6ed6b4ab71
commit
3f8b9cfe85
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user