1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

Add the -s command to keep smbpasswd quiet during the tests.

Andrew Bartlett
This commit is contained in:
Andrew Bartlett -
parent a96503475d
commit 180d7e8c43

View File

@ -105,8 +105,8 @@ test_smbpasswd_remote() {
test_smbpasswd_local() {
test_smbpasswd_newpassword="$2"
rm -f $prefix/private/smbpasswd
echo "( echo $test_smbpasswd_newpassword ; echo $test_smbpasswd_newpassword; ) | $prefix/bin/smbpasswd -L $whoami"
( echo $test_smbpasswd_newpassword ; echo $test_smbpasswd_newpassword; ) | $prefix/bin/smbpasswd -L $whoami
echo "( echo $test_smbpasswd_newpassword ; echo $test_smbpasswd_newpassword; ) | $prefix/bin/smbpasswd -L -s $whoami"
( echo $test_smbpasswd_newpassword ; echo $test_smbpasswd_newpassword; ) | $prefix/bin/smbpasswd -L -s $whoami
status=$?
if [ $status = 0 ]; then
echo "smbpasswd correctly locally changed password ($test_smbpasswd_password -> $test_smbpasswd_newpassword)"