diff options
Diffstat (limited to 'progs/setcap.c')
-rw-r--r-- | progs/setcap.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/progs/setcap.c b/progs/setcap.c index f675cdd..930429a 100644 --- a/progs/setcap.c +++ b/progs/setcap.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997,2007-8 Andrew G. Morgan <morgan@kernel.org> + * Copyright (c) 1997,2007-8,2020 Andrew G. Morgan <morgan@kernel.org> * * This sets/verifies the capabilities of a given file. */ @@ -26,6 +26,7 @@ static void usage(int status) " -q quietly\n" " -v validate supplied capability matches file\n" " -n <rootid> write a user namespace limited capability\n" + " --license display the license info\n" ); exit(status); } @@ -91,6 +92,13 @@ int main(int argc, char **argv) quiet = 1; continue; } + if (!strcmp("--license", *argv)) { + printf( + "%s has a you choose license: BSD 3-clause or GPL2\n" + "Copyright (c) 1997,2007-8,2020 Andrew G. Morgan" + " <morgan@kernel.org>\n", argv[0]); + exit(0); + } if (!strcmp(*argv, "-h")) { usage(0); } |