<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>29115</bug_id>
          
          <creation_ts>2013-06-26 20:55:32 +0400</creation_ts>
          <short_desc>&apos;ln -sr&apos; always dereference target</short_desc>
          <delta_ts>2017-10-28 04:33:36 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>coreutils</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>led</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>evg</cc>
    
    <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>mike</cc>
    
    <cc>placeholder</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>141153</commentid>
    <comment_count>0</comment_count>
      <attachid>5860</attachid>
    <who name="">led</who>
    <bug_when>2013-06-26 20:55:32 +0400</bug_when>
    <thetext>Created attachment 5860
fix &apos;ln --relative&apos; for no dereference target by default

$ ln -sr /etc/X11/lib64/libGL.so.1 /tmp/libGL.so.1
$ readlink /tmp/libGL.so.1
../usr/lib64/X11/libGL.so.1.2

что вовсе не то, предполагалось.
Т.е. &apos;-r&apos; всегда работает, как будто присутсвует &apos;-L&apos;

Приложенный патч вроде бы решает это, делая dereference для target только если указан &apos;-L&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>141419</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2013-07-09 20:35:27 +0400</bug_when>
    <thetext>ping</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>141625</commentid>
    <comment_count>2</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2013-07-18 04:04:16 +0400</bug_when>
    <thetext>I forwarded this to coreutils mailing list and received a reply:
http://lists.gnu.org/archive/html/coreutils/2013-07/msg00053.html

In short, the issue was already discussed at
http://lists.gnu.org/archive/html/coreutils/2012-02/msg00167.html,
&quot;ln -rs&quot; is not going to change anyway, and even the change to &quot;ln -Prs&quot; is unlikely to be accepted because of ambiguity.

For greater control, they suggest using realpath(1) in conjunction with ln(1) without -r.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>166664</commentid>
    <comment_count>3</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2017-10-28 04:33:36 +0300</bug_when>
    <thetext>wontfix upstream</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>5860</attachid>
            <date>2013-06-26 20:55:32 +0400</date>
            <delta_ts>2013-06-26 20:55:32 +0400</delta_ts>
            <desc>fix &apos;ln --relative&apos; for no dereference target by default</desc>
            <filename>coreutils-8.21-ln.patch</filename>
            <type>text/plain</type>
            <size>606</size>
            <attacher>led</attacher>
            
              <data encoding="base64">ZGlmZiAtdXJOIGNvcmV1dGlscy04LjIxLWFsdDEvc3JjL2xuLmMgY29yZXV0aWxzLTguMjEtYWx0
MS5sbi9zcmMvbG4uYwotLS0gY29yZXV0aWxzLTguMjEtYWx0MS9zcmMvbG4uYwkyMDEzLTA0LTA3
IDEzOjUzOjE3LjAwMDAwMDAwMCArMDMwMAorKysgY29yZXV0aWxzLTguMjEtYWx0MS5sbi9zcmMv
bG4uYwkyMDEzLTA2LTI2IDE5OjMyOjU2LjAwMDAwMDAwMCArMDMwMApAQCAtMTM3LDcgKzEzNyw3
IEBACiAgIGNoYXIgKnRhcmdldGRpciA9IGRpcl9uYW1lICh0YXJnZXQpOwogCiAgIGNoYXIgKnJl
YWxkZXN0ID0gY2Fub25pY2FsaXplX2ZpbGVuYW1lX21vZGUgKHRhcmdldGRpciwgQ0FOX01JU1NJ
TkcpOwotICBjaGFyICpyZWFsZnJvbSA9IGNhbm9uaWNhbGl6ZV9maWxlbmFtZV9tb2RlIChmcm9t
LCBDQU5fTUlTU0lORyk7CisgIGNoYXIgKnJlYWxmcm9tID0gY2Fub25pY2FsaXplX2ZpbGVuYW1l
X21vZGUgKGZyb20sIGxvZ2ljYWwgPyBDQU5fTUlTU0lORyA6IENBTl9NSVNTSU5HIHwgQ0FOX05P
TElOS1MpOwogCiAgIC8qIFdyaXRlIHRvIGEgUEFUSF9NQVggYnVmZmVyLiAgKi8KICAgY2hhciAq
cmVsYXRpdmVfZnJvbSA9IHhtYWxsb2MgKFBBVEhfTUFYKTsK
</data>

          </attachment>
      

    </bug>

</bugzilla>