From bf10446a69b0f328441ab334a8e35ad14c3d47e8 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 12 May 2014 16:45:55 +0200 Subject: [PATCH] selftest: Fix Samba::bindir_path() with a valid directory. Signed-off-by: Andreas Schneider Reviewed-by: Guenther Deschner --- selftest/target/Samba.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selftest/target/Samba.pm b/selftest/target/Samba.pm index 9f3e6ec3896..f1c4055feb6 100644 --- a/selftest/target/Samba.pm +++ b/selftest/target/Samba.pm @@ -57,7 +57,7 @@ sub bindir_path($$) { my $valpath = "$object->{bindir}/$path"; - return $valpath if (-f $valpath); + return $valpath if (-f $valpath or -d $valpath); return $path; } -- 2.11.4.GIT