mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 22:35:35 +00:00
binutils/aa-features-abi: make -f short arg actually be accepted
The aa-features-abi -f short argument was not added to the getopt_long() set of short arguments, resulting in the command incorrectly failing like so: $ ./aa-features-abi -f /etc/apparmor.d/abi/3.0 ./aa-features-abi: invalid option -- 'f' USAGE: ./aa-features-abi [OPTIONS] <SOURCE> [OUTPUT OPTIONS] [...] The long --file option works as expected. Fix this by adding f to the set of short arguments passed to getopt_long(). Signed-off-by: Steve Beattie <steve.beattie@canonical.com> Acked-by: John Johansen <john.johansen@canonical.com> MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/804
This commit is contained in:
@@ -124,7 +124,7 @@ static char **parse_args(int argc, char **argv)
|
||||
{"stdout", no_argument, 0, ARG_STDOUT},
|
||||
};
|
||||
|
||||
while ((opt = getopt_long(argc, argv, "+dvhxl:w:", long_opts, NULL)) != -1) {
|
||||
while ((opt = getopt_long(argc, argv, "+dvhxf:l:w:", long_opts, NULL)) != -1) {
|
||||
switch (opt) {
|
||||
case 'd':
|
||||
opt_debug = true;
|
||||
|
Reference in New Issue
Block a user