From fbe0c52aaa82e347296677348433283f3099f01e Mon Sep 17 00:00:00 2001 From: benrubson Date: Sun, 27 Aug 2017 09:50:13 +0200 Subject: [PATCH] Run sudo tests checking effective UID --- integration/normal.t.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/normal.t.pl b/integration/normal.t.pl index c5d679b..0ee74e0 100755 --- a/integration/normal.t.pl +++ b/integration/normal.t.pl @@ -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 ? my $sudo_cmd; -if (! $<) +if ($> == 0) { $sudo_cmd=""; }