[Pkg-samba-maint] [Git][samba-team/samba][master] d/tests/util: use printf for formatting password for smbpasswd, not non-standard echo \n (mr !60)
Michael Tokarev (@mjt)
gitlab at salsa.debian.org
Sun Sep 18 18:49:22 BST 2022
Michael Tokarev pushed to branch master at Debian Samba Team / samba
Commits:
028d3bef by Michael Tokarev at 2022-09-18T20:43:31+03:00
d/tests/util: use printf for formatting password for smbpasswd, not non-standard echo \n (mr !60)
- - - - -
1 changed file:
- debian/tests/util
Changes:
=====================================
debian/tests/util
=====================================
@@ -31,7 +31,7 @@ add_user() {
echo "Creating a local and samba user called ${username}"
useradd -m "${username}"
echo "Setting samba password for the ${username} user"
- echo "${password}\n${password}" | smbpasswd -s -a ${username}
+ printf '%s\n%s\n' "${password}" "${password}" | smbpasswd -s -a ${username}
}
# $1: share name
View it on GitLab: https://salsa.debian.org/samba-team/samba/-/commit/028d3bef1355be6b9c0b62d519c2cddca5172da0
--
View it on GitLab: https://salsa.debian.org/samba-team/samba/-/commit/028d3bef1355be6b9c0b62d519c2cddca5172da0
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-samba-maint/attachments/20220918/ccab0598/attachment.htm>
More information about the Pkg-samba-maint
mailing list