diff options
author | tv <tv@pkgsrc.org> | 2005-03-07 23:29:49 +0000 |
---|---|---|
committer | tv <tv@pkgsrc.org> | 2005-03-07 23:29:49 +0000 |
commit | 71e2654fa31923b68daf2f28ba73fbe6ac59389a (patch) | |
tree | a03e313a0a2d0cedf2ecfe5ea8233f81f07709f1 /security/openssh/patches/patch-ad | |
parent | f0b56b8383535702298d13adc0856101aaf631a8 (diff) | |
download | pkgsrc-71e2654fa31923b68daf2f28ba73fbe6ac59389a.tar.gz |
nb5: Rework Interix support, based on work done by Interop Systems
*before* a BSD-with-advertising license was added to their diffs, and other
work done personally by me.
sshd now works. Most permissions checks work properly. Privsep is off by
default, and the sshd user is not created, on Interix until some problems
with privsep are fixed (perhaps by abstracting the auth functionality out
to openpam).
Diffstat (limited to 'security/openssh/patches/patch-ad')
-rw-r--r-- | security/openssh/patches/patch-ad | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/security/openssh/patches/patch-ad b/security/openssh/patches/patch-ad index cf79d713caa..8b84bf78efa 100644 --- a/security/openssh/patches/patch-ad +++ b/security/openssh/patches/patch-ad @@ -1,7 +1,18 @@ -$NetBSD: patch-ad,v 1.8 2004/08/31 11:27:12 wiz Exp $ +$NetBSD: patch-ad,v 1.9 2005/03/07 23:29:49 tv Exp $ ---- loginrec.c.orig 2004-08-15 11:12:52.000000000 +0200 +--- loginrec.c.orig 2004-08-15 05:12:52.000000000 -0400 +++ loginrec.c +@@ -406,8 +406,8 @@ login_set_addr(struct logininfo *li, con + int + login_write (struct logininfo *li) + { +-#ifndef HAVE_CYGWIN +- if ((int)geteuid() != 0) { ++#if !defined(HAVE_CYGWIN) && !defined(HAVE_INTERIX) ++ if ((int)geteuid() != ROOTUID) { + logit("Attempt to write login records by non-root user (aborting)"); + return 1; + } @@ -415,7 +415,7 @@ login_write (struct logininfo *li) /* set the timestamp */ |