ALT Linux Bugzilla
– Attachment 5860 Details for
Bug 29115
'ln -sr' always dereference target
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
fix 'ln --relative' for no dereference target by default
coreutils-8.21-ln.patch (text/plain), 606 bytes, created by
led
on 2013-06-26 20:55:32 MSK
(
hide
)
Description:
fix 'ln --relative' for no dereference target by default
Filename:
MIME Type:
Creator:
led
Created:
2013-06-26 20:55:32 MSK
Size:
606 bytes
patch
obsolete
>diff -urN coreutils-8.21-alt1/src/ln.c coreutils-8.21-alt1.ln/src/ln.c >--- coreutils-8.21-alt1/src/ln.c 2013-04-07 13:53:17.000000000 +0300 >+++ coreutils-8.21-alt1.ln/src/ln.c 2013-06-26 19:32:56.000000000 +0300 >@@ -137,7 +137,7 @@ > char *targetdir = dir_name (target); > > char *realdest = canonicalize_filename_mode (targetdir, CAN_MISSING); >- char *realfrom = canonicalize_filename_mode (from, CAN_MISSING); >+ char *realfrom = canonicalize_filename_mode (from, logical ? CAN_MISSING : CAN_MISSING | CAN_NOLINKS); > > /* Write to a PATH_MAX buffer. */ > char *relative_from = xmalloc (PATH_MAX);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 29115
: 5860