summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Rice <tim@multitalents.net>2014-01-22 19:16:10 -0800
committerTim Rice <tim@multitalents.net>2014-01-22 19:16:10 -0800
commit617da33c20cb59f9ea6c99c881d92493371ef7b8 (patch)
treef44fc036a7760a2562f8ac489e061e4988121b99
parent5c2ff5e31f57d303ebb414d84a934c02728fa568 (diff)
- (tim) [session.c] Improve error reporting on set_id().
-rw-r--r--ChangeLog3
-rw-r--r--session.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b4a81f996..962caf079 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
120130123
2 - (tim) [session.c] Improve error reporting on set_id().
3
120130122 420130122
2 - (djm) [openbsd-compat/setproctitle.c] Don't fail to compile if a 5 - (djm) [openbsd-compat/setproctitle.c] Don't fail to compile if a
3 platform that is expected to use the reuse-argv style setproctitle 6 platform that is expected to use the reuse-argv style setproctitle
diff --git a/session.c b/session.c
index 6be16ca86..12dd9ab10 100644
--- a/session.c
+++ b/session.c
@@ -1554,7 +1554,7 @@ do_setusercontext(struct passwd *pw)
1554#else 1554#else
1555# ifdef USE_LIBIAF 1555# ifdef USE_LIBIAF
1556 if (set_id(pw->pw_name) != 0) { 1556 if (set_id(pw->pw_name) != 0) {
1557 exit(1); 1557 fatal("set_id(%s) Failed", pw->pw_name);
1558 } 1558 }
1559# endif /* USE_LIBIAF */ 1559# endif /* USE_LIBIAF */
1560 /* Permanently switch to the desired uid. */ 1560 /* Permanently switch to the desired uid. */