summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2023-02-23 15:22:14 +0000
committerPádraig Brady <P@draigBrady.com>2023-02-23 15:22:14 +0000
commitc97c40c3b4f5338b1c8689002f50d523b9cff2a0 (patch)
tree4880ca3473824b742d752c85ef27b7363888c1b7
parent3edbf016be774e266a659349f513fe265c842e26 (diff)
downloadcoreutils-c97c40c3b4f5338b1c8689002f50d523b9cff2a0.tar.gz
doc: chgrp,chmod,chown: state --reference always dereferences
* src/chgrp.c (usage): State that --reference always dereferences symbolic links. * src/chmod.c (usage): Likewise. * src/chown.c (usage): Likewise. Fixes https://bugs.gnu.org/61720
-rw-r--r--src/chgrp.c4
-rw-r--r--src/chmod.c3
-rw-r--r--src/chown.c4
3 files changed, 6 insertions, 5 deletions
diff --git a/src/chgrp.c b/src/chgrp.c
index e695328e9..141413352 100644
--- a/src/chgrp.c
+++ b/src/chgrp.c
@@ -136,8 +136,8 @@ With --reference, change the group of each FILE to that of RFILE.\n\
--preserve-root fail to operate recursively on '/'\n\
"), stdout);
fputs (_("\
- --reference=RFILE use RFILE's group rather than specifying a\n\
- GROUP value\n\
+ --reference=RFILE use RFILE's group rather than specifying a GROUP.\n\
+ RFILE is always dereferenced if a symbolic link.\n\
"), stdout);
fputs (_("\
-R, --recursive operate on files and directories recursively\n\
diff --git a/src/chmod.c b/src/chmod.c
index a0b83a8f7..e48736e11 100644
--- a/src/chmod.c
+++ b/src/chmod.c
@@ -393,7 +393,8 @@ With --reference, change the mode of each FILE to that of RFILE.\n\
--preserve-root fail to operate recursively on '/'\n\
"), stdout);
fputs (_("\
- --reference=RFILE use RFILE's mode instead of MODE values\n\
+ --reference=RFILE use RFILE's mode instead of specifying MODE values.\n\
+ RFILE is always dereferenced if a symbolic link.\n\
"), stdout);
fputs (_("\
-R, --recursive change files and directories recursively\n\
diff --git a/src/chown.c b/src/chown.c
index f298b6081..d4ae24bec 100644
--- a/src/chown.c
+++ b/src/chown.c
@@ -113,8 +113,8 @@ With --reference, change the owner and group of each FILE to those of RFILE.\n\
--preserve-root fail to operate recursively on '/'\n\
"), stdout);
fputs (_("\
- --reference=RFILE use RFILE's owner and group rather than\n\
- specifying OWNER:GROUP values\n\
+ --reference=RFILE use RFILE's owner and group rather than specifying\n\
+ OWNER:GROUP values. RFILE is always dereferenced.\n\
"), stdout);
fputs (_("\
-R, --recursive operate on files and directories recursively\n\