perror_reply() should not be used where errno isn't meaningful.

This commit is contained in:
Yaroslav Tykhiy 2004-02-07 14:38:04 +00:00
parent 6ed6b4ab71
commit 3f8b9cfe85

View File

@ -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;
}