From edc20870ae4f5310b146e5f2c0e885cd24c80fc5 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 21 Aug 2010 08:31:21 -0400 Subject: [PATCH] Don't need to fork and wait when compiled with --disable-pam-session --HG-- branch : 1.7 --- sudo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sudo.c b/sudo.c index 63c727c6c..974191081 100644 --- a/sudo.c +++ b/sudo.c @@ -105,7 +105,7 @@ # include "nonunix.h" #endif -#ifdef HAVE_PAM +#if defined(HAVE_PAM) && !defined(NO_PAM_SESSION) # define CMND_WAIT TRUE #else # define CMND_WAIT FALSE -- 2.40.0