selftest: Use the absolute path to libnss_winbind.so.
authorAndreas Schneider <asn@samba.org>
Fri, 8 Nov 2013 08:49:25 +0000 (09:49 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 17 Jan 2014 15:45:27 +0000 (16:45 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Fri Jan 17 16:45:27 CET 2014 on sn-devel-104

selftest/target/Samba.pm

index ab3851f67e01cd04ad79b32ff955589a8ce1aa23..d33c1d68672aa78225436af4c1b367867b6e0c4b 100644 (file)
@@ -9,6 +9,7 @@ use strict;
 use target::Samba3;
 use target::Samba4;
 use POSIX;
+use Cwd qw(abs_path);
 
 sub new($$$$$) {
        my ($classname, $bindir, $binary_mapping,$ldap, $srcdir, $server_maxtime) = @_;
@@ -69,6 +70,7 @@ sub nss_wrapper_winbind_so_path($) {
        my $ret = $ENV{NSS_WRAPPER_WINBIND_SO_PATH};
         if (not defined($ret)) {
            $ret = bindir_path($object, "default/nsswitch/libnss-winbind.so");
+           $ret = abs_path($ret);
        }
        return $ret;
 }