[PATCH] Care for permissions of /var/empty in contrib/cygwin/ssh-host-config

Tim Rice tim at multitalents.net
Wed Jul 10 23:49:24 EST 2002


On Wed, 10 Jul 2002, Corinna Vinschen wrote:

> Hi,
>
> the following patch explicitely sets the permissions on /var/empty
> to 755 when running the ssh-host-config script on Cygwin.  I never
> thought it would be necessary but apparently there are actually
> users working with a umask of 0.  Sigh.

Is this patch needed?
The current Makefile.in does
(umask 022 ; $(srcdir)/mkinstalldirs $(DESTDIR)$(PRIVSEP_PATH))

>
> Corinna
>
> Index: contrib/cygwin/ssh-host-config
> ===================================================================
> RCS file: /cvs/openssh_cvs/contrib/cygwin/ssh-host-config,v
> retrieving revision 1.8
> diff -u -p -r1.8 ssh-host-config
> --- contrib/cygwin/ssh-host-config	7 Jul 2002 21:07:47 -0000	1.8
> +++ contrib/cygwin/ssh-host-config	10 Jul 2002 12:10:10 -0000
> @@ -163,6 +163,7 @@ else
>    # On NT change ownership of that dir to user "system"
>    if [ $_nt -gt 0 ]
>    then
> +    chmod 755 /var/empty
>      chown system.system /var/empty
>    fi
>  fi
>
>

-- 
Tim Rice				Multitalents	(707) 887-1469
tim at multitalents.net





More information about the openssh-unix-dev mailing list