tar does not restore symlink {cma}time

Bug #568588 reported by Nikolaus Rath
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tar (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: tar

$ cat error.sh
#!/bin/bash
md foo
ln -s 'somewhere' foo/symlink
echo somedata > foo/file
sleep 3
tar cf foo.tar foo
mv foo bar
tar xf foo.tar
rsync -aHAXicn foo/ bar/
stat foo/symlink bar/symlink
rm -r foo bar foo.tar

$ . error.sh
.L..t...... symlink -> somewhere
  File: `foo/symlink' -> `somewhere'
  Size: 84 Blocks: 8 IO Block: 4096 symbolic link
Device: 16h/22d Inode: 138397 Links: 1
Access: (0777/lrwxrwxrwx) Uid: ( 1000/nikratio) Gid: ( 1000/nikratio)
Access: 2010-04-22 13:56:25.818125034 -0400
Modify: 2010-04-22 13:56:25.818125034 -0400
Change: 2010-04-22 13:56:25.818125034 -0400
  File: `bar/symlink' -> `somewhere'
  Size: 84 Blocks: 8 IO Block: 4096 symbolic link
Device: 16h/22d Inode: 138391 Links: 1
Access: (0777/lrwxrwxrwx) Uid: ( 1000/nikratio) Gid: ( 1000/nikratio)
Access: 2010-04-22 13:56:22.798124971 -0400
Modify: 2010-04-22 13:56:22.798124971 -0400
Change: 2010-04-22 13:56:22.798124971 -0400

ProblemType: Bug
Architecture: i386
Date: Thu Apr 22 13:53:12 2010
DistroRelease: Ubuntu 9.10
Package: tar 1.22-1
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-20.58-generic
SourcePackage: tar
Uname: Linux 2.6.31-20-generic i686

Revision history for this message
Nikolaus Rath (nikratio) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.