summaryrefslogtreecommitdiff
path: root/source3/smbadduser
diff options
context:
space:
mode:
authorJohn Terpstra <jht@samba.org>1997-10-13 12:13:11 +0000
committerJohn Terpstra <jht@samba.org>1997-10-13 12:13:11 +0000
commit6032ec8a0172b9197ed1422e39ba4790d8df83f8 (patch)
tree0a8014457b0c9afd8c7413163ecb9e7d5a89281e /source3/smbadduser
parent0b04310b8ab0e6b19976415c09b6922f055850a5 (diff)
downloadsamba-6032ec8a0172b9197ed1422e39ba4790d8df83f8.tar.gz
samba-6032ec8a0172b9197ed1422e39ba4790d8df83f8.tar.bz2
samba-6032ec8a0172b9197ed1422e39ba4790d8df83f8.zip
JHT ==> Removed linefeed that caused problems.
(This used to be commit 534b4c6d371eff6fdbcbcf5fafa3b79d3116b544)
Diffstat (limited to 'source3/smbadduser')
-rwxr-xr-xsource3/smbadduser5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/smbadduser b/source3/smbadduser
index 789cc927eb..e4e1b273d1 100755
--- a/source3/smbadduser
+++ b/source3/smbadduser
@@ -55,8 +55,7 @@ foreach one ($argv)
echo "Adding: $unix to $smbpasswd"
eval $passwd | \
awk -F: '$1==USR { \
- printf( "%s:%s:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:%s:%s:%s\n",
-$1, $3, $5, $6, $7) }' USR=$unix >> $smbpasswd
+ printf( "%s:%s:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:%s:%s:%s\n", $1, $3, $5, $6, $7) }' USR=$unix >> $smbpasswd
if ($unix != $ntid) then
echo "Adding: {$unix = $ntid} to $user_map"
echo "$unix = $ntid" >> $user_map
@@ -71,4 +70,4 @@ foreach one ($new)
echo $line
echo "ENTER password for $one"
smbpasswd $one
-end \ No newline at end of file
+end