← Back to team overview

ecryptfs team mailing list archive

[Bug 441237] Re: tar cant archive symlinks on ecryptfs

 

Hmm, I wasn't able to reproduce it with a simple directory with a symlink in it:
kirkland@x200:~$ mkdir foo
kirkland@x200:~$ cd foo/o
bash: cd: foo/o: No such file or directory
kirkland@x200:~$ cd foo/
kirkland@x200:~/foo$ date > foobar
kirkland@x200:~/foo$ ln -s foobar link
kirkland@x200:~/foo$ ls -alF
total 28
drwxr-xr-x  2 kirkland kirkland  4096 2009-10-03 13:17 ./
drwxr-xr-x 66 kirkland kirkland 20480 2009-10-03 13:17 ../
-rw-r--r--  1 kirkland kirkland    29 2009-10-03 13:17 foobar
lrwxrwxrwx  1 kirkland kirkland    84 2009-10-03 13:17 link -> foobar
kirkland@x200:~/foo$ cd .
kirkland@x200:~/foo$ cd ..
kirkland@x200:~$ tar jcvf foo.tar.bz2 foo/
foo/
foo/foobar
foo/link
kirkland@x200:~$ cp foo.tar.bz2 /tmp
kirkland@x200:~$ cd /tmp/
kirkland@x200:/tmp$ tar jxvf foo.tar.bz2 
foo/
foo/foobar
foo/link


However, I think hg might be uncovering something we're doing wrong in eCryptfs.  In fact, both bzr and git have already pointed out errors in eCryptfs, so I'm going to subscribe Tyler and ask him to take a look.

:-Dustin

** Changed in: ecryptfs-utils (Ubuntu)
   Importance: Undecided => Medium

-- 
tar cant archive symlinks on ecryptfs
https://bugs.launchpad.net/bugs/441237
You received this bug notification because you are a member of eCryptfs,
which is subscribed to ecryptfs-utils in ubuntu.

Status in “ecryptfs-utils” package in Ubuntu: New

Bug description:
Binary package hint: ecryptfs-utils

Hello! I've got a very strange problem. Symlinks doesn't want to be archived:

user@ubuntu:~$ ls -la ./weird/
total 0
drwxr-xr-x  2 user user    0 2009-10-03 12:33 .
drwxr-xr-x 35 user user 8192 2009-10-03 12:33 ..
lrwxrwxrwx  1 user user    0 2009-10-03 11:43 .bashrc -> ./.profile
-rw-r--r--  1 user user  697 2009-10-03 11:43 .profile
user@ubuntu:~$ tar -cf - ./weird/ | tar -tvf -
drwxr-xr-x user/user 0 2009-10-03 12:33 ./weird/
lrwxrwxrwx user/user 0 2009-10-03 11:43 ./weird/.bashrc -> .\251t\b \251t\b<W
-rw-r--r-- user/user 697 2009-10-03 11:43 ./weird/.profile

I don't know what ".\251t\b \251t\b<W" mean.

Steps to reproduce(:

cd /tmp
hg init testrepo
cd ./testrepo
echo "content" > testfile
ln -s testfile ./.testlink
hg add
hg ci -m "commit"
cd ~
hg clone ssh://localhost//tmp/testrepo clonedrepo
tar -cf - ./clonedrepo | tar -tvf -


mount:
/home/user/.Private on /home/user type ecryptfs (ecryptfs_sig=6838319cfdb74235,ecryptfs_fnek_sig=6f10y2de3b0e0f6c,ecryptfs_cipher=aes,ecryptfs_key_bytes=16)

ProblemType: Bug
Architecture: i386
Date: Sat Oct  3 12:18:10 2009
DistroRelease: Ubuntu 9.10
Package: tar 1.22-1
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-11.36-generic
SourcePackage: tar
Uname: Linux 2.6.31-11-generic i686



References