symbolic links confuse encfsctl export
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
EncFS |
Fix Released
|
Undecided
|
Valient Gough |
Bug Description
i saw this is 1.3.2 and also 1.4.1.1:
ROOT [tmp]$ /var/tmp/
The directory "/tmp/eee/" does not exist. Should it be created? (y,n) y
The directory "/tmp/ddd" does not exist. Should it be created? (y,n) y
Creating new encrypted volume.
Please choose from one of the following options:
enter "x" for expert configuration mode,
enter "p" for pre-configured paranoia mode,
anything else, or an empty line will select standard mode.
?> p
Paranoia configuration selected.
Configuration finished. The filesystem to be created has
the following properties:
Filesystem cipher: "ssl/aes", version 2:1:1
Filename encoding: "nameio/block", version 3:0:1
Key Size: 256 bits
Block Size: 512 bytes, including 8 byte MAC header
Each file contains 8 byte header with unique IV data.
Filenames encoded using IV chaining mode.
File data IV is chained to filename IV.
-------
The external initialization-
enabled. This option disables the use of hard links on the
filesystem. Without hard links, some programs may not work.
The programs 'mutt' and 'procmail' are known to fail. For
more information, please see the encfs mailing list.
If you would like to choose another configuration setting,
please press CTRL-C now to abort and start over.
Now you will need to enter a password for your filesystem.
You will need to remember this password, as there is absolutely
no recovery mechanism. However, the password can be changed
later using encfsctl.
New Encfs Password:
Verify Encfs Password:
ROOT [tmp]$
ROOT [tmp]$ ls ddd eee
ddd:
eee:
ROOT [tmp]$ touch ddd/Aasfasfasdf
ROOT [tmp]$ (cd ddd; ln -s Aasfasfaaasdfas
ROOT [tmp]$ ls -l ddd eee
ddd:
total 4
-rw-r--r-- 1 root root 0 Mar 13 15:31 Aasfasfaaasdfas
-rw-r--r-- 1 root root 0 Mar 13 15:31 Aasfasfasdfasdf
lrwxrwxrwx 1 root root 43 Mar 13 15:31 bar -> Aasfasfasdfasdf
lrwxrwxrwx 1 root root 31 Mar 13 15:31 foo -> Aasfasfaaasdfas
eee:
total 4
lrwxrwxrwx 1 root root 46 Mar 13 15:31 8Up7tYT0kyb1Xdt
-rw-r--r-- 1 root root 0 Mar 13 15:31 fgZz9DZf05o0Ry1
-rw-r--r-- 1 root root 0 Mar 13 15:31 fp2j,G,
lrwxrwxrwx 1 root root 67 Mar 13 15:31 uP78DTaBO7sFpEi
ROOT [tmp]$
ROOT [tmp]$ mkdir newdir
ROOT [tmp]$ ls newdir
ROOT [tmp]$
ROOT [tmp]$ /var/tmp/
encfsctl version 1.4.1.1
ROOT [tmp]$ /var/tmp/
EncFS Password:
15:43:58 (DirNode.cpp:354) decode err: invalid padding size
ROOT [tmp]$
ROOT [tmp]$ ls -l newdir
total 0
-rw-r--r-- 1 root root 0 Mar 13 15:43 Aasfasfaaasdfas
-rw-r--r-- 1 root root 0 Mar 13 15:43 Aasfasfasdfasdf
lrwxrwxrwx 1 root root 43 Mar 13 15:43 bar -> Aasfasfasdfasdf
ROOT [tmp]$
ROOT [tmp]$ rm -f newdir/*
ROOT [tmp]$ ls -l newdir
total 0
ROOT [tmp]$
ROOT [tmp]$ /var/tmp/
encfsctl version 1.3.2
ROOT [tmp]$ /var/tmp/
EncFS Password:
15:44:25 (DirNode.cpp:357) decode err: invalid padding size
ROOT [tmp]$
ROOT [tmp]$ ls -l newdir
total 0
-rw-r--r-- 1 root root 0 Mar 13 15:44 Aasfasfaaasdfas
-rw-r--r-- 1 root root 0 Mar 13 15:44 Aasfasfasdfasdf
lrwxrwxrwx 1 root root 43 Mar 13 15:44 bar -> Aasfasfasdfasdf
ROOT [tmp]$
version information:
ROOT [tmp]$ ldd /var/tmp/
libssl.so.4 => /lib/libssl.so.4 (0x00305000)
ROOT [tmp]$
ROOT [tmp]$ ls -l /usr/local/
lrwxrwxrwx 1 root root 16 Mar 12 20:55 /usr/local/
ROOT [tmp]$ ls -l /lib/libssl.so.4
lrwxrwxrwx 1 root root 16 Dec 31 00:16 /lib/libssl.so.4 -> libssl.so.0.9.7a
ROOT [tmp]$ ls -l /usr/local/
lrwxrwxrwx 1 root root 16 Mar 12 23:53 /usr/local/
ROOT [tmp]$
ROOT [tmp]$ ldd /var/tmp/
libssl.so.4 => /lib/libssl.so.4 (0x00305000)
ROOT [tmp]$
ROOT [tmp]$ ls -l /usr/local/
lrwxrwxrwx 1 root root 16 Mar 12 20:55 /usr/local/
ROOT [tmp]$ ls -l /lib/libssl.so.4
lrwxrwxrwx 1 root root 16 Dec 31 00:16 /lib/libssl.so.4 -> libssl.so.0.9.7a
ROOT [tmp]$ ls -l /usr/local/
lrwxrwxrwx 1 root root 16 Mar 12 23:53 /usr/local/
ROOT [tmp]$
ROOT [tmp]$ uname -r
2.6.9-67.0.4.EL
ROOT [tmp]$
Changed in encfs: | |
assignee: | nobody → vgough |
Changed in encfs: | |
status: | Fix Committed → Fix Released |
using "cp -r /tmp/ddd /tmp/newdir" appears to be a workaround, but it is not really ideal compared to "encfsctl export"