summaryrefslogtreecommitdiff
path: root/source/a/shadow/shadow.newgrp.nopam
blob: 7920dde00dd8e8033ba8afbb71615c125892a99a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- src/newgrp.c.orig	2002-10-12 14:15:34.000000000 +0100
+++ src/newgrp.c	2002-10-12 14:15:42.000000000 +0100
@@ -398,6 +398,7 @@
 		SYSLOG ((LOG_INFO,
 			 "user `%s' (login `%s' on %s) switched to group `%s'",
 			 name, loginname, tty, group));
+#ifdef USE_PAM
 		if (getdef_bool ("CLOSE_SESSIONS")) {
 			/*
 			 * We want to fork and exec the new shell in the child, leaving the
@@ -450,6 +451,7 @@
 			signal (SIGTTIN, SIG_DFL);
 			signal (SIGTTOU, SIG_DFL);
 		}
+#endif // USE_PAM
 	}
 #endif				/* USE_SYSLOG */