diff options
Diffstat (limited to 'platform.c')
-rw-r--r-- | platform.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/platform.c b/platform.c index e3a428aaa..c894190b2 100644 --- a/platform.c +++ b/platform.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $Id: platform.c,v 1.3 2009/12/20 23:49:22 dtucker Exp $ */ | 1 | /* $Id: platform.c,v 1.4 2010/11/05 01:03:05 dtucker Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2006 Darren Tucker. All rights reserved. | 4 | * Copyright (c) 2006 Darren Tucker. All rights reserved. |
@@ -57,6 +57,16 @@ platform_post_fork_child(void) | |||
57 | #endif | 57 | #endif |
58 | } | 58 | } |
59 | 59 | ||
60 | void | ||
61 | platform_setusercontext(struct passwd *pw) | ||
62 | { | ||
63 | #ifdef USE_SOLARIS_PROJECTS | ||
64 | /* if solaris projects were detected, set the default now */ | ||
65 | if (getuid() == 0 || geteuid() == 0) | ||
66 | solaris_set_default_project(pw); | ||
67 | #endif | ||
68 | } | ||
69 | |||
60 | char * | 70 | char * |
61 | platform_krb5_get_principal_name(const char *pw_name) | 71 | platform_krb5_get_principal_name(const char *pw_name) |
62 | { | 72 | { |