diff options
author | Benno Schulenberg <bensberg@justemail.net> | 2012-10-15 19:37:34 +0200 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2012-11-09 13:16:36 +0000 |
commit | 2aeb77bf0f005a079ebaa78caf0b4d21ff10563c (patch) | |
tree | b0dcfe7bead222b12be3253cd141abf267f0ab41 /doc | |
parent | 51e7c777f827899e196812552f30d7457372e503 (diff) | |
download | coreutils-2aeb77bf0f005a079ebaa78caf0b4d21ff10563c.tar.xz |
doc: chcon: add descriptions for three undocumented options
These were missed in this related change v8.14-104-g44e20cd
* src/chcon.c (usage): Mention the two --preserve-root options.
* doc/coreutils.texi (chcon invocation): Plus the --dereferece option.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/coreutils.texi | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi index f126f4945..7f8c0d194 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -1384,7 +1384,7 @@ legitimate uses for such a command, that resolves to @file{/}. If you really want to try to remove all the files on your system, you can use the @option{--no-preserve-root} option, but the default behavior, specified by the -@option{--preserve-option}, is safer for most purposes. +@option{--preserve-root} option, is safer for most purposes. The commands @command{chgrp}, @command{chmod} and @command{chown} can also operate destructively on entire hierarchies, so they too @@ -15256,12 +15256,16 @@ The program accepts the following options. Also see @ref{Common options}. @table @samp +@item --dereference +@opindex --dereference +Do not affect symbolic links but what they refer to; this is the default. + @item -h @itemx --no-dereference @opindex -h @opindex --no-dereference @cindex no dereference -Affect symbolic links instead of any referenced file. +Affect the symbolic links themselves instead of any referenced file. @item --reference=@var{rfile} @opindex --reference @@ -15274,6 +15278,18 @@ Use @var{rfile}'s security context rather than specifying a @var{context} value. @opindex --recursive Operate on files and directories recursively. +@item --preserve-root +@opindex --preserve-root +Refuse to operate recursively on the root directory, @file{/}, +when used together with the @option{--recursive} option. +@xref{Treating / specially}. + +@item --no-preserve-root +@opindex --no-preserve-root +Do not treat the root directory, @file{/}, specially when operating +recursively; this is the default. +@xref{Treating / specially}. + @choptH @xref{Traversing symlinks}. |