OpenSSH 3.4 released

Corinna Vinschen vinschen at redhat.com
Thu Jun 27 23:18:39 EST 2002


On Wed, Jun 26, 2002 at 06:21:03PM +0200, Corinna Vinschen wrote:
> --- sshd.c.orig	2002-06-26 18:21:03.000000000 +0200
> +++ sshd.c	2002-06-26 18:20:55.000000000 +0200
> @@ -1035,7 +1035,13 @@ main(int ac, char **av)
>  		    (S_ISDIR(st.st_mode) == 0))
>  			fatal("Missing privilege separation directory: %s",
>  			    _PATH_PRIVSEP_CHROOT_DIR);
> +#ifdef HAVE_CYGWIN
> +		if (check_ntsec(_PATH_PRIVSEP_CHROOT_DIR) &&
> +		    (st.st_uid != getuid () ||
> +		     (st.st_mode & (S_IWGRP|S_IWOTH)) != 0))
> +#else
>  		if (st.st_uid != 0 || (st.st_mode & (S_IWGRP|S_IWOTH)) != 0)
> +#endif
>  			fatal("Bad owner or mode for %s",
>  			    _PATH_PRIVSEP_CHROOT_DIR);
>  	}

Hi,

is that patch ok to get into the sources or should it be changed somehow?

Corinna

-- 
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.
mailto:vinschen at redhat.com



More information about the openssh-unix-dev mailing list