mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
When reporting an error internalizing an ACL string, print out the
ACL that generated the error, rather than the function, which is more user-friendly. Obtained from: TrustedBSD Project Product of: France
This commit is contained in:
parent
a146c97a8f
commit
4615eb20c3
1 changed files with 2 additions and 2 deletions
|
|
@ -153,7 +153,7 @@ main(int argc, char *argv[])
|
|||
entry = zmalloc(sizeof(struct sf_entry));
|
||||
entry->acl = acl_from_text(optarg);
|
||||
if (entry->acl == NULL)
|
||||
err(1, "acl_from_text() failed");
|
||||
err(1, "%s", optarg);
|
||||
entry->op = OP_MERGE_ACL;
|
||||
TAILQ_INSERT_TAIL(&entrylist, entry, next);
|
||||
break;
|
||||
|
|
@ -164,7 +164,7 @@ main(int argc, char *argv[])
|
|||
entry = zmalloc(sizeof(struct sf_entry));
|
||||
entry->acl = acl_from_text(optarg);
|
||||
if (entry->acl == NULL)
|
||||
err(1, "acl_from_text() failed");
|
||||
err(1, "%s", optarg);
|
||||
entry->op = OP_REMOVE_ACL;
|
||||
TAILQ_INSERT_TAIL(&entrylist, entry, next);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue