]> granicus.if.org Git - sudo/commitdiff
Don't need to fork and wait when compiled with --disable-pam-session
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 21 Aug 2010 12:31:21 +0000 (08:31 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 21 Aug 2010 12:31:21 +0000 (08:31 -0400)
--HG--
branch : 1.7

sudo.c

diff --git a/sudo.c b/sudo.c
index 63c727c6c16b97b849315276ec1083013f3bfc93..97419108147db3b2506b74e374c0cacc4dcfcb2a 100644 (file)
--- a/sudo.c
+++ b/sudo.c
 # include "nonunix.h"
 #endif
 
-#ifdef HAVE_PAM
+#if defined(HAVE_PAM) && !defined(NO_PAM_SESSION)
 # define CMND_WAIT     TRUE
 #else
 # define CMND_WAIT     FALSE