summaryrefslogtreecommitdiff
path: root/src/chcon.c
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2011-12-26 19:20:04 +0000
committerPádraig Brady <P@draigBrady.com>2011-12-26 22:19:46 +0000
commit44e20cda07046da961ff1e42b240be74ad200488 (patch)
treedd4b8d98a82141670d0a5117bc0085631e91c817 /src/chcon.c
parentb1230020dc5c5acc9f9ab16c3c397c0aecb5977b (diff)
downloadcoreutils-44e20cda07046da961ff1e42b240be74ad200488.tar.xz
doc: homologize ch{con,grp,mod,own} option descriptions
* src/chgrp.c (usage): Group associated options together, to aid users. Also minimize the differences between individual messages across these four commands, to aid translators. * src/chmod.c: Likewise. * src/chown.c: Likewise. * src/chcon.c (usage): Likewise. Document the --dereference option. Suggested by Paul Eggert and Jari Aalto
Diffstat (limited to 'src/chcon.c')
-rw-r--r--src/chcon.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/chcon.c b/src/chcon.c
index 5174a46fc..f1c00184a 100644
--- a/src/chcon.c
+++ b/src/chcon.c
@@ -359,22 +359,30 @@ Usage: %s [OPTION]... CONTEXT FILE...\n\
Change the security context of each FILE to CONTEXT.\n\
With --reference, change the security context of each FILE to that of RFILE.\n\
\n\
- -h, --no-dereference affect symbolic links instead of any referenced file\n\
"), stdout);
fputs (_("\
- --reference=RFILE use RFILE's security context rather than specifying\n\
- a CONTEXT value\n\
- -R, --recursive operate on files and directories recursively\n\
- -v, --verbose output a diagnostic for every file processed\n\
+ --dereference affect the referent of each symbolic link (this is\n\
+ the default), rather than the symbolic link itself\n\
+ -h, --no-dereference affect symbolic links instead of any referenced file\n\
"), stdout);
fputs (_("\
-u, --user=USER set user USER in the target security context\n\
-r, --role=ROLE set role ROLE in the target security context\n\
-t, --type=TYPE set type TYPE in the target security context\n\
-l, --range=RANGE set range RANGE in the target security context\n\
-\n\
"), stdout);
fputs (_("\
+ --reference=RFILE use RFILE's security context rather than specifying\n\
+ a CONTEXT value\n\
+"), stdout);
+ fputs (_("\
+ -R, --recursive operate on files and directories recursively\n\
+"), stdout);
+ fputs (_("\
+ -v, --verbose output a diagnostic for every file processed\n\
+"), stdout);
+ fputs (_("\
+\n\
The following options modify how a hierarchy is traversed when the -R\n\
option is also specified. If more than one is specified, only the final\n\
one takes effect.\n\