]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
doc: clarify that ln --relative requires --symbolic to be specified
authorPádraig Brady <P@draigBrady.com>
Sun, 11 Apr 2021 14:17:02 +0000 (15:17 +0100)
committerPádraig Brady <P@draigBrady.com>
Sun, 11 Apr 2021 18:23:37 +0000 (19:23 +0100)
* doc/coreutils.texi (ln invocation): State --symbolic is required.
* src/ln.c (usage): Explicitly state -s is not implied.
Fixes https://bugs.gnu.org/47703

doc/coreutils.texi
src/ln.c

index cd10b0d4d2983b9e2d1ade7a246620811bd398a4..3e3aedb0f988267df04d77849537bdbebd5221ef 100644 (file)
@@ -10589,6 +10589,7 @@ link will be the same as if a hard link had been created.
 @opindex -r
 @opindex --relative
 Make symbolic links relative to the link location.
+This option is only valid with the @option{--symbolic} option.
 
 Example:
 
index e6abd2244ae29a305b53563fb1cda174a7ecfe25..760bab25a66816effe96b8b618cd93015e24d71a 100644 (file)
--- a/src/ln.c
+++ b/src/ln.c
@@ -447,7 +447,7 @@ interpreted in relation to its parent directory.\n\
   -n, --no-dereference        treat LINK_NAME as a normal file if\n\
                                 it is a symbolic link to a directory\n\
   -P, --physical              make hard links directly to symbolic links\n\
-  -r, --relative              create symbolic links relative to link location\n\
+  -r, --relative              with -s, create links relative to link location\n\
   -s, --symbolic              make symbolic links instead of hard links\n\
 "), stdout);
       fputs (_("\