From c895eee170a1ea205fa2cfa4d83bd7273c9d8651 Mon Sep 17 00:00:00 2001 From: Glenn Washburn Date: Fri, 9 Nov 2018 09:03:01 -0600 Subject: Add better documentation for "-c" option. --- src/firejail/usage.c | 2 +- src/man/firejail.txt | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/firejail/usage.c b/src/firejail/usage.c index 84bc22571..b5d41b3e8 100644 --- a/src/firejail/usage.c +++ b/src/firejail/usage.c @@ -42,7 +42,7 @@ static char *usage_str = " --blacklist=filename - blacklist directory or file.\n" " --build - build a whitelisted profile for the application.\n" " --build=filename - build a whitelisted profile for the application.\n" - " -c - execute command and exit.\n" + " -c - login shell compatibility option (has no effect).\n" " --caps - enable default Linux capabilities filter.\n" " --caps.drop=all - drop all capabilities.\n" " --caps.drop=capability,capability - blacklist capabilities filter.\n" diff --git a/src/man/firejail.txt b/src/man/firejail.txt index e7917737e..2fe2e8bfa 100644 --- a/src/man/firejail.txt +++ b/src/man/firejail.txt @@ -186,7 +186,9 @@ Example: $ firejail --build=vlc.profile vlc ~/Videos/test.mp4 .TP \fB\-c -Execute command and exit. +Login shell compatibility option. This option is use by some login programs when executing +the login shell, such as when firejail is used as a restricted login shell. It currently does +not change the execution of firejail. .TP \fB\-\-caps Linux capabilities is a kernel feature designed to split up the root privilege into a set of distinct privileges. -- cgit v1.2.3-54-g00ecf