From 8757254f39ab75c93e9917a6bdf99475c6a024d7 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 23 Nov 1998 03:36:10 +0000 Subject: 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) --- source3/smbd/chgpasswd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/smbd/chgpasswd.c') diff --git a/source3/smbd/chgpasswd.c b/source3/smbd/chgpasswd.c index 69ac69b59b..30b9b3fed6 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)); } -- cgit