mirror of
https://github.com/vgough/encfs.git
synced 2024-11-24 00:43:41 +01:00
Cygwin, update reverse tests
This commit is contained in:
parent
daedfbc861
commit
4399676ec7
@ -380,6 +380,11 @@ static bool processArgs(int argc, char *argv[],
|
|||||||
/* Disable kernel dentry cache
|
/* Disable kernel dentry cache
|
||||||
* Fallout unknown, disabling for safety */
|
* Fallout unknown, disabling for safety */
|
||||||
PUSHARG("-oentry_timeout=0");
|
PUSHARG("-oentry_timeout=0");
|
||||||
|
#ifdef __CYGWIN__
|
||||||
|
// Should be enforced due to attr_timeout=0, but does not seem to work correctly
|
||||||
|
// https://github.com/billziss-gh/winfsp/issues/155
|
||||||
|
PUSHARG("-oFileInfoTimeout=0");
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
case 'm':
|
case 'm':
|
||||||
out->opts->mountOnDemand = true;
|
out->opts->mountOnDemand = true;
|
||||||
|
@ -49,9 +49,23 @@ sub newWorkingDir
|
|||||||
our $plain = "$workingDir/plain";
|
our $plain = "$workingDir/plain";
|
||||||
mkdir($plain);
|
mkdir($plain);
|
||||||
our $ciphertext = "$workingDir/ciphertext";
|
our $ciphertext = "$workingDir/ciphertext";
|
||||||
mkdir($ciphertext);
|
if ($^O ne "cygwin")
|
||||||
|
{
|
||||||
|
mkdir($ciphertext);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$ciphertext = "/cygdrive/x";
|
||||||
|
}
|
||||||
our $decrypted = "$workingDir/decrypted";
|
our $decrypted = "$workingDir/decrypted";
|
||||||
mkdir($decrypted);
|
if ($^O ne "cygwin")
|
||||||
|
{
|
||||||
|
mkdir($decrypted);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$decrypted = "/cygdrive/y";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Helper function
|
# Helper function
|
||||||
@ -231,7 +245,14 @@ encfsctl_cat_test();
|
|||||||
symlink_test("/"); # absolute
|
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
|
if ($^O ne "cygwin")
|
||||||
|
{
|
||||||
|
symlink_test("!§\$%&/()\\<>#+="); # special characters
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
symlink_test("!§\$%&/()//<>#+="); # special characters but without \ which is not Windows compliant
|
||||||
|
} # Absolute symlinks may failed on Windows : https://github.com/billziss-gh/winfsp/issues/153
|
||||||
symlink_test("$plain/foo");
|
symlink_test("$plain/foo");
|
||||||
writesDenied();
|
writesDenied();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user