mirror of
https://github.com/vgough/encfs.git
synced 2025-06-20 03:37:50 +02:00
tests: reverse: symlink absolute path inside the plaintext dir
This test currently fails because of a bug in EncFS
This commit is contained in:
parent
52f189b232
commit
91919929dd
@ -78,9 +78,11 @@ sub copy_test
|
|||||||
# Parameter: symlink target
|
# Parameter: symlink target
|
||||||
sub symlink_test
|
sub symlink_test
|
||||||
{
|
{
|
||||||
my $target = shift(@_);
|
my $target = shift;
|
||||||
symlink($target, "$plain/symlink");
|
symlink($target, "$plain/symlink");
|
||||||
ok( readlink("$decrypted/symlink") eq "$target", "symlink to '$target'");
|
$dec = readlink("$decrypted/symlink");
|
||||||
|
ok( $dec eq $target, "symlink to '$target'") or
|
||||||
|
print("# (original) $target' != '$dec' (decrypted)\n");
|
||||||
unlink("$plain/symlink");
|
unlink("$plain/symlink");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -175,6 +177,7 @@ symlink_test("/"); # absolute
|
|||||||
symlink_test("foo"); # relative
|
symlink_test("foo"); # relative
|
||||||
symlink_test("/1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/15/17/18"); # long
|
symlink_test("/1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/15/17/18"); # long
|
||||||
symlink_test("!§\$%&/()\\<>#+="); # special characters
|
symlink_test("!§\$%&/()\\<>#+="); # special characters
|
||||||
|
symlink_test("$plain/foo");
|
||||||
writesDenied();
|
writesDenied();
|
||||||
|
|
||||||
# Umount and delete files
|
# Umount and delete files
|
||||||
|
Loading…
x
Reference in New Issue
Block a user