diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-11-23 03:36:10 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-11-23 03:36:10 +0000 |
commit | 8757254f39ab75c93e9917a6bdf99475c6a024d7 (patch) | |
tree | d29c188100e79b2ee4374b43efe61db80e65947c /source3/smbd/chgpasswd.c | |
parent | fd1533862ed8bb0c9e0fb4996a37dd784fd17eae (diff) | |
download | samba-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.c | 8 |
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)); } |