Ignore the --nodev, --noexec and --nosuid arguments. * procfs/main.c (argp_parser): Ignore some arguments for compatibility. --- procfs/main.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)
diff --git a/procfs/main.c b/procfs/main.c index bcf9590..727fea6 100644 --- a/procfs/main.c +++ b/procfs/main.c @@ -45,6 +45,10 @@ uid_t opt_anon_owner; #define OPT_KERNEL_PID 2 #define OPT_ANON_OWNER 0 +#define NODEV_KEY 0x80 /* !isascii (NODEV_KEY), so no short option. */ +#define NOEXEC_KEY 0x81 /* Likewise. */ +#define NOSUID_KEY 0x82 /* Likewise. */ + static error_t argp_parser (int key, char *arg, struct argp_state *state) { @@ -112,6 +116,18 @@ argp_parser (int key, char *arg, struct argp_state *state) else opt_anon_owner = v; break; + + case NODEV_KEY: + /* Ignored for compatibility with Linux' procfs. */ + ;; + + case NOEXEC_KEY: + /* Ignored for compatibility with Linux' procfs. */ + ;; + + case NOSUID_KEY: + /* Ignored for compatibility with Linux' procfs. */ + ;; } return 0; @@ -143,6 +159,12 @@ struct argp_option common_options[] = { "Be aware that USER will be granted access to the environment and " "other sensitive information about the processes in question. " "(default: use uid 0)" }, + { "nodev", NODEV_KEY, NULL, 0, + "Ignored for compatibility with Linux' procfs." }, + { "noexec", NOEXEC_KEY, NULL, 0, + "Ignored for compatibility with Linux' procfs." }, + { "nosuid", NOSUID_KEY, NULL, 0, + "Ignored for compatibility with Linux' procfs." }, {} }; -- 1.7.10.4