summaryrefslogtreecommitdiff
path: root/platform.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2016-08-06 10:49:59 +0100
committerColin Watson <cjwatson@debian.org>2016-08-07 12:18:58 +0100
commit477bb7636238c106f8cd7c868a8c0c5eabcfb3db (patch)
tree601176af2ecf358c36b766776a86845ad7a3cd6f /platform.c
parent747fac2de0d889183f67f6900194c0462c558544 (diff)
parent4c914ccd85bbf391c4dc61b85e3c178fef465e3f (diff)
New upstream release (7.3p1).
Diffstat (limited to 'platform.c')
-rw-r--r--platform.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/platform.c b/platform.c
index 9a23e6e3e..2ce4dbf81 100644
--- a/platform.c
+++ b/platform.c
@@ -18,8 +18,6 @@
18 18
19#include "includes.h" 19#include "includes.h"
20 20
21#include <sys/types.h>
22
23#include <stdarg.h> 21#include <stdarg.h>
24#include <unistd.h> 22#include <unistd.h>
25 23
@@ -107,8 +105,12 @@ platform_setusercontext(struct passwd *pw)
107#endif 105#endif
108 106
109#ifdef USE_SOLARIS_PROJECTS 107#ifdef USE_SOLARIS_PROJECTS
110 /* if solaris projects were detected, set the default now */ 108 /*
111 if (getuid() == 0 || geteuid() == 0) 109 * If solaris projects were detected, set the default now, unless
110 * we are using PAM in which case it is the responsibility of the
111 * PAM stack.
112 */
113 if (!options.use_pam && (getuid() == 0 || geteuid() == 0))
112 solaris_set_default_project(pw); 114 solaris_set_default_project(pw);
113#endif 115#endif
114 116