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/nsswitch/finger.exp | |
parent | 4e512ab75d33b0801b549de50010131166f1e93a (diff) | |
download | samba-f45c2e52b756df6c1691a6f6b9957470bc217a48.tar.gz |
Allow lookup of users with spaces in their name.
(This used to be commit 751ea8cfb931e1de6df447ed05e051262cdeb304)
Diffstat (limited to 'testsuite/nsswitch/finger.exp')
-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 ab3b28f58fc..36bab8e1990 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] } { |