mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
perror_reply() should not be used where errno isn't meaningful.
This commit is contained in:
parent
6ed6b4ab71
commit
3f8b9cfe85
1 changed files with 5 additions and 1 deletions
|
|
@ -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…
Reference in a new issue