mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
parser: fix --cache-loc short arg option (-L)
When the --cache-loc option was added in trunk commit 1916, it was intended that -L would be the short form of the option (based on documentation and usage changes). However, the commit mistakenly did not include the short option in the list include in the call to getopt_long(3). This patch adds it along with the indicator that it requires an argument (the different cache location) to the getopt_long() call. Signed-off-by: Steve Beattie <steve@nxnw.org> Acked-by: Seth Arnold <seth.arnold@canonical.com>
This commit is contained in:
@@ -583,7 +583,7 @@ static int process_args(int argc, char *argv[])
|
||||
int count = 0;
|
||||
option = OPTION_ADD;
|
||||
|
||||
while ((c = getopt_long(argc, argv, "adf:h::rRVvI:b:BCD:NSm:qQn:XKTWkO:po:", long_options, &o)) != -1)
|
||||
while ((c = getopt_long(argc, argv, "adf:h::rRVvI:b:BCD:NSm:qQn:XKTWkL:O:po:", long_options, &o)) != -1)
|
||||
{
|
||||
count += process_arg(c, optarg);
|
||||
}
|
||||
|
Reference in New Issue
Block a user