diff options
author | Tim Potter <tpot@samba.org> | 2001-11-26 00:19:23 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-11-26 00:19:23 +0000 |
commit | f45c2e52b756df6c1691a6f6b9957470bc217a48 (patch) | |
tree | bcdb0cbefab5cca5f96ef639c5c326c5633da693 /testsuite | |
parent | 4e512ab75d33b0801b549de50010131166f1e93a (diff) | |
download | samba-f45c2e52b756df6c1691a6f6b9957470bc217a48.tar.gz samba-f45c2e52b756df6c1691a6f6b9957470bc217a48.tar.bz2 samba-f45c2e52b756df6c1691a6f6b9957470bc217a48.zip |
Allow lookup of users with spaces in their name.
(This used to be commit 751ea8cfb931e1de6df447ed05e051262cdeb304)
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/nsswitch/finger.exp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/testsuite/nsswitch/finger.exp b/testsuite/nsswitch/finger.exp index ab3b28f58f..36bab8e199 100644 --- a/testsuite/nsswitch/finger.exp +++ b/testsuite/nsswitch/finger.exp @@ -12,10 +12,10 @@ if { [regexp "Error" $output] } { set user_list [split $output "\n"] -# Look up all users using finger. This should test getpwnam() +# Look up all users using finger -m. This should test getpwnam() foreach { user } $user_list { - set output [util_start "finger" "-m $user" "" "no such user"] + set output [util_start "finger" "-m \"$user\"" "" "no such user"] verbose $output if { [regexp "no such user" $output] } { @@ -25,12 +25,10 @@ foreach { user } $user_list { } } -verbose "testing finger -m" - # Run finger without the -m to also test set/get/endpwent() foreach { user } $user_list { - set output [util_start "finger" "-m $user"] + set output [util_start "finger" "\"$user\""] verbose $output if { [regexp "no such user" $output] } { |