scp bug: newly created dirs do not inherit sgid bit
Petr Skovron
xofon at pikomat.mff.cuni.cz
Fri Oct 14 10:10:04 EST 2005
On Thu, Oct 13, 2005 at 06:08:40PM -0500, Albert Chin wrote:
> On Tue, Oct 11, 2005 at 05:20:03PM +0200, Petr Skovron wrote:
> >
> > I discovered that directories created by scp when recursive
> > copying into a sgid directory do not inherit the sgid bit. I believe
> > this is a bug. A patch to fix this is attached.
>
> Does rcp do so?
The version
/* $OpenBSD: rcp.c,v 1.41 2005/03/31 18:39:21 deraadt Exp $ */
seems to behave the same, with the respective code around lines 677
(mkdir) and 689 (chmod).
> albert chin (china at thewrittenword.com)
Petr Sk
More information about the openssh-unix-dev
mailing list