diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-09-05 10:34:24 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-11-21 05:48:19 +0100 |
commit | bf7ce656b71123926f0fcb32e4b9577b395da76e (patch) | |
tree | f969bdc613ac8424a00cba10edebb23e52555356 | |
parent | 8d16db0cc28b2d911aee918d5c3582ad29ddfeed (diff) |
procfs: do not hard-code the default argument values
* procfs/main.c (common_options): If possible, do not hard-code the
default values.
-rw-r--r-- | procfs/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/procfs/main.c b/procfs/main.c index 629c8490..0593f416 100644 --- a/procfs/main.c +++ b/procfs/main.c @@ -142,13 +142,13 @@ struct argp_option common_options[] = { #define XSTR(X) #X { "clk-tck", 'h', "HZ", 0, "Unit used for the values expressed in system clock ticks " - "(default: sysconf(_SC_CLK_TCK))" }, + "(default: " STR (OPT_CLK_TCK) ")" }, { "stat-mode", 's', "MODE", 0, "The [pid]/stat file publishes information which on Hurd is only " "available to the process owner. " "You can use this option to override its mode to be more permissive " "for compatibility purposes. " - "(default: 0400)" }, + "(default: " STR (OPT_STAT_MODE) ")" }, { "fake-self", 'S', "PID", OPTION_ARG_OPTIONAL, "Provide a fake \"self\" symlink to the given PID, for compatibility " "purposes. If PID is omitted, \"self\" will point to init. " @@ -164,7 +164,7 @@ struct argp_option common_options[] = { "Make USER the owner of files related to processes without one. " "Be aware that USER will be granted access to the environment and " "other sensitive information about the processes in question. " - "(default: use uid 0)" }, + "(default: use uid " STR (OPT_ANON_OWNER) ")" }, { "nodev", NODEV_KEY, NULL, 0, "Ignored for compatibility with Linux' procfs." }, { "noexec", NOEXEC_KEY, NULL, 0, |