View | Details | Raw Unified | Return to bug 1249
Collapse All | Expand All

(-)session.c (-4 / +7 lines)
Lines 58-63 Link Here
58
#include <stdlib.h>
58
#include <stdlib.h>
59
#include <string.h>
59
#include <string.h>
60
#include <unistd.h>
60
#include <unistd.h>
61
#ifdef HAVE_USERSEC_H
62
# include <usersec.h>
63
#endif
61
64
62
#include "xmalloc.h"
65
#include "xmalloc.h"
63
#include "ssh.h"
66
#include "ssh.h"
Lines 1292-1301 Link Here
1292
#endif /* HAVE_CYGWIN */
1295
#endif /* HAVE_CYGWIN */
1293
	{
1296
	{
1294
1297
1295
#ifdef HAVE_SETPCRED
1296
		if (setpcred(pw->pw_name, (char **)NULL) == -1)
1297
			fatal("Failed to set process credentials");
1298
#endif /* HAVE_SETPCRED */
1299
#ifdef HAVE_LOGIN_CAP
1298
#ifdef HAVE_LOGIN_CAP
1300
# ifdef __bsdi__
1299
# ifdef __bsdi__
1301
		setpgid(0, 0);
1300
		setpgid(0, 0);
Lines 1367-1372 Link Here
1367
			exit(1);
1366
			exit(1);
1368
		}
1367
		}
1369
#endif /* HAVE_LIBIAF  && !BROKEN_LIBIAF */
1368
#endif /* HAVE_LIBIAF  && !BROKEN_LIBIAF */
1369
#ifdef HAVE_SETPCRED
1370
		if (setpcred(pw->pw_name, (char **)NULL) == -1)
1371
			fatal("Failed to set process credentials");
1372
#endif /* HAVE_SETPCRED */
1370
		/* Permanently switch to the desired uid. */
1373
		/* Permanently switch to the desired uid. */
1371
		permanently_set_uid(pw);
1374
		permanently_set_uid(pw);
1372
#endif
1375
#endif

Return to bug 1249