mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 14:25:52 +00:00
fix missing long opt arg value
Using --subdomainfs without an argument triggers a segfault. This was due to the long option missing the "has_arg" flag. Signed-off-by: Kees Cook <kees@ubuntu.com> Acked-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
@@ -91,7 +91,7 @@ struct option long_options[] = {
|
||||
{"add", 0, 0, 'a'},
|
||||
{"binary", 0, 0, 'B'},
|
||||
{"base", 1, 0, 'b'},
|
||||
{"subdomainfs", 0, 0, 'f'},
|
||||
{"subdomainfs", 1, 0, 'f'},
|
||||
{"help", 2, 0, 'h'},
|
||||
{"replace", 0, 0, 'r'},
|
||||
{"reload", 0, 0, 'r'}, /* undocumented reload option == replace */
|
||||
|
Reference in New Issue
Block a user