summaryrefslogtreecommitdiffstats
path: root/source3/smbd/chgpasswd.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-11-23 03:36:10 +0000
committerAndrew Tridgell <tridge@samba.org>1998-11-23 03:36:10 +0000
commit8757254f39ab75c93e9917a6bdf99475c6a024d7 (patch)
treed29c188100e79b2ee4374b43efe61db80e65947c /source3/smbd/chgpasswd.c
parentfd1533862ed8bb0c9e0fb4996a37dd784fd17eae (diff)
downloadsamba-8757254f39ab75c93e9917a6bdf99475c6a024d7.tar.gz
samba-8757254f39ab75c93e9917a6bdf99475c6a024d7.tar.xz
samba-8757254f39ab75c93e9917a6bdf99475c6a024d7.zip
changed string_sub() to replace " ; and ` in the inserted string with _
use all_string_sub() if you don't want this. (This used to be commit a3357ab49335106674fe7a7481cd0f146d74fbe5)
Diffstat (limited to 'source3/smbd/chgpasswd.c')
-rw-r--r--source3/smbd/chgpasswd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/smbd/chgpasswd.c b/source3/smbd/chgpasswd.c
index 69ac69b59b1..30b9b3fed60 100644
--- a/source3/smbd/chgpasswd.c
+++ b/source3/smbd/chgpasswd.c
@@ -434,12 +434,12 @@ BOOL chgpasswd(char *name,char *oldpass,char *newpass, BOOL as_root)
}
string_sub(passwordprogram,"%u",name);
- string_sub(passwordprogram,"%o",oldpass);
- string_sub(passwordprogram,"%n",newpass);
+ all_string_sub(passwordprogram,"%o",oldpass);
+ all_string_sub(passwordprogram,"%n",newpass);
string_sub(chatsequence,"%u",name);
- string_sub(chatsequence,"%o",oldpass);
- string_sub(chatsequence,"%n",newpass);
+ all_string_sub(chatsequence,"%o",oldpass);
+ all_string_sub(chatsequence,"%n",newpass);
return(chat_with_program(passwordprogram,name,chatsequence, as_root));
}