summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--openbsd-compat/port-solaris.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsd-compat/port-solaris.c b/openbsd-compat/port-solaris.c
index bb8fccb41..0e89dc326 100644
--- a/openbsd-compat/port-solaris.c
+++ b/openbsd-compat/port-solaris.c
@@ -213,7 +213,7 @@ solaris_set_default_project(struct passwd *pw)
213 213
214 /* get default project, if we fail just return gracefully */ 214 /* get default project, if we fail just return gracefully */
215 if ((defaultproject = getdefaultproj(pw->pw_name, &tempproject, &buf, 215 if ((defaultproject = getdefaultproj(pw->pw_name, &tempproject, &buf,
216 sizeof(buf))) > 0) { 216 sizeof(buf))) != NULL) {
217 /* set default project */ 217 /* set default project */
218 if (setproject(defaultproject->pj_name, pw->pw_name, 218 if (setproject(defaultproject->pj_name, pw->pw_name,
219 TASK_NORMAL) != 0) 219 TASK_NORMAL) != 0)