r2899: Change some #if DEBUG_PASSWORD's to #ifdef DEBUG_PASSWORD.
authorTim Potter <tpot@samba.org>
Mon, 11 Oct 2004 00:32:31 +0000 (00:32 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:56 +0000 (10:52 -0500)
Bugzilla #1903.

source/auth/pass_check.c
source/libsmb/ntlm_check.c
source/smbd/chgpasswd.c
source/smbd/password.c

index 1ac8c1815a69712461e286174d729ba29f369896..0425e01cdcb6c8880fa62fba4c7f25ddd8ab42b1 100644 (file)
@@ -599,7 +599,7 @@ NTSTATUS pass_check(const struct passwd *pass, const char *user, const char *pas
 
        NTSTATUS nt_status;
 
-#if DEBUG_PASSWORD
+#ifdef DEBUG_PASSWORD
        DEBUG(100, ("checking user=[%s] pass=[%s]\n", user, password));
 #endif
 
index 1d02b03e0c367d620b8501b1a19ed7c3d821360d..a0ca08fb8912475d3e210408805c835084a094eb 100644 (file)
@@ -63,7 +63,7 @@ static BOOL smb_pwd_check_ntlmv1(const DATA_BLOB *nt_response,
        }
        
        
-#if DEBUG_PASSWORD
+#ifdef DEBUG_PASSWORD
        DEBUG(100,("Part password (P16) was |\n"));
        dump_data(100, part_passwd, 16);
        DEBUGADD(100,("Password from client was |\n"));
index f8636be351fb45ab4d926b98658f8861b9202ccf..c91f8599c9639cb2903a664d848abad79df64f32 100644 (file)
@@ -456,7 +456,7 @@ BOOL chgpasswd(const char *name, const struct passwd *pass,
 
        DEBUG(3, ("chgpasswd: Password change (as_root=%s) for user: %s\n", BOOLSTR(as_root), name));
 
-#if DEBUG_PASSWORD
+#ifdef DEBUG_PASSWORD
        DEBUG(100, ("chgpasswd: Passwords: old=%s new=%s\n", oldpass, newpass));
 #endif
 
index cf3c3d64d206178b8dca7f8aab4cdd2a127fd635..eb389d7013da5ec970cae8e74c1f9a3b3a75e648 100644 (file)
@@ -473,7 +473,7 @@ BOOL authorise_login(int snum, fstring user, DATA_BLOB password,
 {
        BOOL ok = False;
        
-#if DEBUG_PASSWORD
+#ifdef DEBUG_PASSWORD
        DEBUG(100,("authorise_login: checking authorisation on user=%s pass=%s\n",
                   user,password.data));
 #endif