summaryrefslogtreecommitdiffstats
path: root/source/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
commita3357ab49335106674fe7a7481cd0f146d74fbe5 (patch)
tree97d2148fce405a449f40426043e8fa23400a7f96 /source/smbd/chgpasswd.c
parentbdcee2557bd243a1bfbde3353ebcfe3d82bf9fc5 (diff)
downloadsamba-a3357ab49335106674fe7a7481cd0f146d74fbe5.tar.gz
samba-a3357ab49335106674fe7a7481cd0f146d74fbe5.tar.xz
samba-a3357ab49335106674fe7a7481cd0f146d74fbe5.zip
changed string_sub() to replace " ; and ` in the inserted string with _
use all_string_sub() if you don't want this.
Diffstat (limited to 'source/smbd/chgpasswd.c')
-rw-r--r--source/smbd/chgpasswd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/smbd/chgpasswd.c b/source/smbd/chgpasswd.c
index 69ac69b59b1..30b9b3fed60 100644
--- a/source/smbd/chgpasswd.c
+++ b/source/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));
}