[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 14/64: procfs: do not hard-code the default argument values
From: |
Samuel Thibault |
Subject: |
[hurd] 14/64: procfs: do not hard-code the default argument values |
Date: |
Wed, 10 Dec 2014 15:17:04 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit bf7ce656b71123926f0fcb32e4b9577b395da76e
Author: Justus Winter <address@hidden>
Date: Fri Sep 5 10:34:24 2014 +0200
procfs: do not hard-code the default argument values
* procfs/main.c (common_options): If possible, do not hard-code the
default values.
---
procfs/main.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/procfs/main.c b/procfs/main.c
index 629c849..0593f41 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,
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] 15/64: startup: rename /hurd/init to /hurd/startup, (continued)
- [hurd] 15/64: startup: rename /hurd/init to /hurd/startup, Samuel Thibault, 2014/12/10
- [hurd] 11/64: Always canonicalize fstab entries with realpath, Samuel Thibault, 2014/12/10
- [hurd] 23/64: startup: also open `console' for reading, Samuel Thibault, 2014/12/10
- [hurd] 26/64: boot: drop obsolete device procedures, Samuel Thibault, 2014/12/10
- [hurd] 16/64: init: add a minimalist init program, Samuel Thibault, 2014/12/10
- [hurd] 22/64: proc: gracefully handle failure to increase priority, Samuel Thibault, 2014/12/10
- [hurd] 25/64: boot: remove unused function `boot_script_read_file', Samuel Thibault, 2014/12/10
- [hurd] 31/64: libdiskfs: fix fabrication of protid, Samuel Thibault, 2014/12/10
- [hurd] 17/64: startup: do not pass signals on to the child, Samuel Thibault, 2014/12/10
- [hurd] 29/64: boot: improve the demuxer, Samuel Thibault, 2014/12/10
- [hurd] 14/64: procfs: do not hard-code the default argument values,
Samuel Thibault <=
- [hurd] 32/64: Fix proc crashes, Samuel Thibault, 2014/12/10
- [hurd] 13/64: Add proc_set_init_task, make runsystem pid 1, Samuel Thibault, 2014/12/10
- [hurd] 40/64: libnetfs: add a payload-aware intrans function, Samuel Thibault, 2014/12/10
- [hurd] 21/64: Makeconf: handle the gnumach protocol, Samuel Thibault, 2014/12/10
- [hurd] 39/64: libdiskfs: add payload-aware intrans functions, Samuel Thibault, 2014/12/10
- [hurd] 18/64: startup: be more specific in the shutdown message, Samuel Thibault, 2014/12/10
- [hurd] 42/64: libpager: add a payload-aware intrans function, Samuel Thibault, 2014/12/10
- [hurd] 19/64: startup: fix the declaration of the *_server functions, Samuel Thibault, 2014/12/10
- [hurd] 43/64: libcons: add a payload-aware intrans function, Samuel Thibault, 2014/12/10
- [hurd] 46/64: console-client: make the demuxer payload-aware, Samuel Thibault, 2014/12/10