summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authorTim Rice <tim@multitalents.net>2002-06-25 15:35:15 -0700
committerTim Rice <tim@multitalents.net>2002-06-25 15:35:15 -0700
commit8eff319298d980ed50b9ec681a2f97d3ed5fb6d1 (patch)
treefe6525e62df885ff75a1640441072cc260200742 /sshd.c
parentb129be657c17c2a861f6c9e2c1f2d9fdf2770615 (diff)
[acconfig.h configure.ac sshd.c] BROKEN_FD_PASSING fix from Markus
for Cygwin, Cray, & SCO
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sshd.c b/sshd.c
index 025f7110..18df8ab8 100644
--- a/sshd.c
+++ b/sshd.c
@@ -613,7 +613,11 @@ privsep_postauth(Authctxt *authctxt)
/* XXX - Remote port forwarding */
x_authctxt = authctxt;
+#ifdef BROKEN_FD_PASSING
+ if (1) {
+#else
if (authctxt->pw->pw_uid == 0 || options.use_login) {
+#endif
/* File descriptor passing is broken or root login */
monitor_apply_keystate(pmonitor);
use_privsep = 0;