summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-12-14 15:41:05 +0100
committerJim Meyering <jim@meyering.net>2006-12-14 15:41:50 +0100
commitc3154b2947abbb8d03a412d5874fcceb1fc29393 (patch)
tree228cca8b905de2e2542887e211fec68bb2a298ba /doc
parent24852bf5b5e7fd954f2e4d1d08d58575453b48b0 (diff)
downloadcoreutils-c3154b2947abbb8d03a412d5874fcceb1fc29393.tar.xz
chgrp, chown: Don't prohibit -RLh, aka -RL with --no-dereference.
* src/chgrp.c (main): Don't prohibit -RLh, aka -RL with --no-dereference. * src/chown.c (main): Likewise. * src/chown-core.c (change_file_owner): Add to a comment. * tests/chown/preserve-root: Add tests. * doc/coreutils.texi (Treating / specially): With --preserve-root, chgrp and chown will not modify "/", even through a symlink.
Diffstat (limited to 'doc')
-rw-r--r--doc/ChangeLog2
-rw-r--r--doc/coreutils.texi4
2 files changed, 6 insertions, 0 deletions
diff --git a/doc/ChangeLog b/doc/ChangeLog
index 026b34a19..60341abab 100644
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -1,6 +1,8 @@
2006-12-14 Jim Meyering <jim@meyering.net>
* coreutils.texi: Remove two doubled words.
+ (Treating / specially): With --preserve-root, chgrp and chown
+ will not modify "/", even through a symlink.
2006-11-28 Jim Meyering <jim@meyering.net>
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 8e6126f36..c7952facc 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -1158,6 +1158,10 @@ to operate recursively on @file{/}, so they default to
option makes them safer for most purposes. For convenience you can
specify @option{--preserve-root} in an alias or in a shell function.
+Note that the @option{--preserve-root} option also ensures
+that @command{chgrp} and @command{chown} do not modify @file{/}
+even when dereferencing a symlink pointing to @file{/}.
+
@node Special built-in utilities
@section Special built-in utilities