mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Make "setfacl -bd" an alias for "setfacl -k". Previously it would crash
on assert. PR: bin/165807 MFC after: 1 month
This commit is contained in:
parent
00b2b3a55d
commit
8ed068d31c
1 changed files with 11 additions and 0 deletions
|
|
@ -264,6 +264,17 @@ main(int argc, char *argv[])
|
|||
need_mask = 1;
|
||||
break;
|
||||
case OP_REMOVE_EXT:
|
||||
/*
|
||||
* Don't try to call remove_ext() for empty
|
||||
* default ACL.
|
||||
*/
|
||||
if (acl_type == ACL_TYPE_DEFAULT &&
|
||||
acl_get_entry(acl, ACL_FIRST_ENTRY,
|
||||
&unused_entry) == 0) {
|
||||
local_error += remove_default(&acl,
|
||||
file->filename);
|
||||
break;
|
||||
}
|
||||
remove_ext(&acl, file->filename);
|
||||
need_mask = 0;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue