From 8fc1504ff8204dd1ca735f31c769f6dadf0f88cb Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 13 Nov 1998 21:41:01 +0000 Subject: Makefile.in configure configure.in include/config.h.in: Changes for DGUX and UNIXWARE. groupdb/aliasdb.c groupdb/aliasfile.c groupdb/groupfile.c: Don't use snprinf, use slprintf. include/includes.h: Fix YP problem. include/smb.h: Fix ZERO_STRUCTP. lib/util_sock.c: Added strerror() in debugs. passdb/ldap.c: Don't use snprinf, use slprintf. rpc_client/cli_lsarpc.c rpc_client/cli_pipe.c rpc_parse/parse_sec.c rpc_server/srv_pipe.c: Don't use snprinf, use slprintf. script/installman.sh: DGUX changes. smbd/open.c smbd/oplock.c: Fixed gcc warnings. web/swat.c: Changes USER to SWAT_USER. (This used to be commit 4c2b5a00983501e5d4aad1456ba8b5ab0dfd9b4c) --- source3/web/swat.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'source3/web/swat.c') diff --git a/source3/web/swat.c b/source3/web/swat.c index 30150815fe..ad98b7b96e 100644 --- a/source3/web/swat.c +++ b/source3/web/swat.c @@ -34,7 +34,7 @@ static BOOL demo_mode = False; /* * Password Management Globals */ -#define USER "username" +#define SWAT_USER "username" #define OLD_PSWD "old_passwd" #define NEW_PSWD "new_passwd" #define NEW2_PSWD "new2_passwd" @@ -627,7 +627,7 @@ static void chg_passwd(void) BOOL rslt; /* Make sure users name has been specified */ - if (strlen(cgi_variable(USER)) == 0) { + if (strlen(cgi_variable(SWAT_USER)) == 0) { printf("

Must specify \"User Name\" \n"); return; } @@ -676,7 +676,7 @@ static void chg_passwd(void) host = "127.0.0.1"; } rslt = change_password(host, - cgi_variable(USER), + cgi_variable(SWAT_USER), cgi_variable(OLD_PSWD), cgi_variable(NEW_PSWD), cgi_variable(ADD_USER_FLAG)? True : False, cgi_variable(ENABLE_USER_FLAG)? True : False, @@ -684,9 +684,9 @@ static void chg_passwd(void) if (rslt == True) { - printf("

The passwd for '%s' has been changed. \n", cgi_variable(USER)); + printf("

The passwd for '%s' has been changed. \n", cgi_variable(SWAT_USER)); } else { - printf("

The passwd for '%s' has NOT been changed. \n",cgi_variable(USER)); + printf("

The passwd for '%s' has NOT been changed. \n",cgi_variable(SWAT_USER)); } return; @@ -703,8 +703,8 @@ static void passwd_page(void) * After the first time through here be nice. If the user * changed the User box text to another users name, remember it. */ - if (cgi_variable(USER)) { - new_name = cgi_variable(USER); + if (cgi_variable(SWAT_USER)) { + new_name = cgi_variable(SWAT_USER); } if (!new_name) new_name = ""; @@ -719,7 +719,7 @@ static void passwd_page(void) * Create all the dialog boxes for data collection */ printf(" User Name : \n"); - printf(" \n", USER, new_name); + printf(" \n", SWAT_USER, new_name); if (am_root() == False) { printf(" Old Password : \n"); printf(" \n",OLD_PSWD); @@ -762,7 +762,7 @@ static void passwd_page(void) * Create all the dialog boxes for data collection */ printf(" User Name : \n"); - printf("\n",USER, new_name); + printf("\n",SWAT_USER, new_name); printf(" Old Password : \n"); printf("\n",OLD_PSWD); printf(" New Password : \n"); -- cgit