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

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

    <bug>
          <bug_id>3989</bug_id>
          
          <creation_ts>2004-04-18 22:43:56 +0400</creation_ts>
          <short_desc>hardlinks to symlinks cause corrupted permissions</short_desc>
          <delta_ts>2007-01-16 16:53:19 +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>star</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sergey Vlasov">vsu</reporter>
          <assigned_to name="Konstantin A Lepikhov (L.A. Kostis)">lakostis</assigned_to>
          <cc>icesik</cc>
    
    <cc>lakostis</cc>
    
    <cc>mike</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>12848</commentid>
    <comment_count>0</comment_count>
    <who name="Sergey Vlasov">vsu</who>
    <bug_when>2004-04-18 22:43:56 +0400</bug_when>
    <thetext>When extracting a tar archive which contains hardlinks to symlinks, star
corrupts permissions of files pointed to by these links.

Steps to Reproduce:
$ mkdir test
$ cd test
$ mkdir dir1 dir2
$ cd dir1
$ touch file1
$ ln -s file1 link1
$ ln link1 link2
$ cd ..
$ star -cvv -f dir1.tar -C dir1 .
a       0 drwxr-xr-x   2 vsu/vsu Apr 18 22:35 2004 .
a       0 -rw-r--r--   1 vsu/vsu Apr 18 22:35 2004 file1
a       0 lrwxrwxrwx   2 vsu/vsu Apr 18 22:35 2004 link1 -&gt; file1
a       0 lrwxrwxrwx   2 vsu/vsu Apr 18 22:35 2004 link2 link to link1 -&gt; link1
star: 1 blocks + 0 bytes (total of 10240 bytes = 10.00k).
$ star -xpvv -f dir1.tar -C dir2
x       0 drwxr-xr-x  vsu/vsu Apr 18 22:35 2004 ./
x       0 -rw-r--r--  vsu/vsu Apr 18 22:35 2004 file1
x       0 lrwxrwxrwx  vsu/vsu Apr 18 22:35 2004 link1 -&gt; file1
x       0 Hrwxrwxrwx  vsu/vsu Apr 18 22:35 2004 link2 link to link1
star: 1 blocks + 0 bytes (total of 10240 bytes = 10.00k).
$ ls -lR
.:
total 12
drwxr-xr-x  2 vsu vsu    42 Apr 18 22:35 dir1
-rw-r--r--  1 vsu vsu 10240 Apr 18 22:36 dir1.tar
drwxr-xr-x  2 vsu vsu    42 Apr 18 22:35 dir2

./dir1:
total 0
-rw-r--r--  1 vsu vsu 0 Apr 18 22:35 file1
lrwxrwxrwx  2 vsu vsu 5 Apr 18 22:35 link1 -&gt; file1
lrwxrwxrwx  2 vsu vsu 5 Apr 18 22:35 link2 -&gt; file1

./dir2:
total 0
-rwxrwxrwx  1 vsu vsu 0 Apr 18 22:35 file1
lrwxrwxrwx  2 vsu vsu 5 Apr 18 22:37 link1 -&gt; file1
lrwxrwxrwx  2 vsu vsu 5 Apr 18 22:37 link2 -&gt; file1

Actual Results:  
Permissions of &quot;file1&quot; in dir2 are corrupted (0777 instead of 0644).

Extracting the same tar file with the GNU tar instead of star produces the
expected result (permissions are correct).  Archiving with GNU tar and
extracting with star gives corrupted permissions.

Expected Results:  
File permissions should be preserved correctly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44007</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2006-12-28 12:21:06 +0300</bug_when>
    <thetext>2 icesik: если как-нить (не спеша) доберёшься, тоже зачтётся.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44019</commentid>
    <comment_count>2</comment_count>
    <who name="Victor Forsyuk">force</who>
    <bug_when>2006-12-28 13:43:28 +0300</bug_when>
    <thetext>Можете  не добираться. В текущей сизифной версии (star 1.5a75) этого бага нет.

</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>