diff options
author | Colin Watson <cjwatson@debian.org> | 2016-12-20 00:22:52 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2016-12-20 00:22:52 +0000 |
commit | 971a7653746a6972b907dfe0ce139c06e4a6f482 (patch) | |
tree | 70fb964265d57ae4967be55b75dbb2a122e9b969 /openbsd-compat/port-solaris.c | |
parent | a8ed8d256b2e2c05b0c15565a7938028c5192277 (diff) | |
parent | 4a354fc231174901f2629437c2a6e924a2dd6772 (diff) |
Import openssh_7.4p1.orig.tar.gz
Diffstat (limited to 'openbsd-compat/port-solaris.c')
-rw-r--r-- | openbsd-compat/port-solaris.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/openbsd-compat/port-solaris.c b/openbsd-compat/port-solaris.c index e36e412d7..0e89dc326 100644 --- a/openbsd-compat/port-solaris.c +++ b/openbsd-compat/port-solaris.c | |||
@@ -1,5 +1,3 @@ | |||
1 | /* $Id: port-solaris.c,v 1.4 2010/11/05 01:03:05 dtucker Exp $ */ | ||
2 | |||
3 | /* | 1 | /* |
4 | * Copyright (c) 2006 Chad Mynhier. | 2 | * Copyright (c) 2006 Chad Mynhier. |
5 | * | 3 | * |
@@ -215,7 +213,7 @@ solaris_set_default_project(struct passwd *pw) | |||
215 | 213 | ||
216 | /* get default project, if we fail just return gracefully */ | 214 | /* get default project, if we fail just return gracefully */ |
217 | if ((defaultproject = getdefaultproj(pw->pw_name, &tempproject, &buf, | 215 | if ((defaultproject = getdefaultproj(pw->pw_name, &tempproject, &buf, |
218 | sizeof(buf))) > 0) { | 216 | sizeof(buf))) != NULL) { |
219 | /* set default project */ | 217 | /* set default project */ |
220 | if (setproject(defaultproject->pj_name, pw->pw_name, | 218 | if (setproject(defaultproject->pj_name, pw->pw_name, |
221 | TASK_NORMAL) != 0) | 219 | TASK_NORMAL) != 0) |