[apparmor] [patch] parser: fix --cache-loc short arg option (-L)
Seth Arnold
seth.arnold at canonical.com
Tue Feb 4 22:09:11 UTC 2014
On Tue, Feb 04, 2014 at 02:04:00PM -0800, Steve Beattie wrote:
> 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 at nxnw.org>
Acked-by: Seth Arnold <seth.arnold at canonical.com>
Thanks
> ---
> parser/parser_main.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> Index: b/parser/parser_main.c
> ===================================================================
> --- a/parser/parser_main.c
> +++ b/parser/parser_main.c
> @@ -583,7 +583,7 @@ static int process_args(int argc, char *
> 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);
> }
>
> --
> Steve Beattie
> <sbeattie at ubuntu.com>
> http://NxNW.org/~steve/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20140204/6b2f4915/attachment.pgp>
More information about the AppArmor
mailing list