From: Tim Potter Date: Tue, 15 May 2001 01:54:22 +0000 (+0000) Subject: Fixed lookup of entire /etc/{passwd,group} file line. X-Git-Tag: samba-4.0.0alpha6~801^2~18132 X-Git-Url: http://git.samba.org/samba.git/?p=ira%2Fwip.git;a=commitdiff_plain;h=b10ae68700e7642c237deaa8fd11da36694e7384 Fixed lookup of entire /etc/{passwd,group} file line. (This used to be commit b208d74e0524514fdb48f80c76192df12238a64e) --- diff --git a/testsuite/nsswitch/wbinfo.exp b/testsuite/nsswitch/wbinfo.exp index 81ac14b78f0..3518db387be 100644 --- a/testsuite/nsswitch/wbinfo.exp +++ b/testsuite/nsswitch/wbinfo.exp @@ -295,10 +295,10 @@ proc check_errcode { args } { } } -set gooduser_name [lindex $user_list 0] +set gooduser_name [lindex [split [lindex $user_list 0] ":"] 0] set gooduser_sid [util_start "bin/wbinfo" "-n $gooduser_name"] -set goodgroup_name [lindex $group_list 0] +set goodgroup_name [lindex [split [lindex $group_list 0] ":"] 0] set goodgroup_sid [util_start "bin/wbinfo" "-n $goodgroup_name"] # Some conditions not tested: