Run sudo tests checking effective UID

This commit is contained in:
benrubson 2017-08-27 09:50:13 +02:00
parent c7cea40ddc
commit fbe0c52aaa

View File

@ -44,7 +44,7 @@ if(system("./build/encfs --verbose --version 2>&1 | grep -q HAVE_XATTR") != 0)
# Did we ask, or are we simply able to run "sudo" tests ? # Did we ask, or are we simply able to run "sudo" tests ?
my $sudo_cmd; my $sudo_cmd;
if (! $<) if ($> == 0)
{ {
$sudo_cmd=""; $sudo_cmd="";
} }