mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01: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:
parent
b0bc0d5323
commit
8137beb265
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue