From owner-freebsd-bugs Wed Nov 18 21:59:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA14393 for freebsd-bugs-outgoing; Wed, 18 Nov 1998 21:59:58 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA14385 for ; Wed, 18 Nov 1998 21:59:56 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id WAA16703; Wed, 18 Nov 1998 22:00:01 -0800 (PST) Date: Wed, 18 Nov 1998 22:00:01 -0800 (PST) Message-Id: <199811190600.WAA16703@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.ORG From: "Nickolay N. Dudorov" Subject: Re: bin/8756: 'pw' command additional feature request Reply-To: "Nickolay N. Dudorov" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/8756; it has been noted by GNATS. From: "Nickolay N. Dudorov" To: FreeBSD-gnats-submit@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Cc: Subject: Re: bin/8756: 'pw' command additional feature request Date: Thu, 19 Nov 1998 11:50:17 +0600 I am very-very-very sorry, but there was incorrect patch included in my PR. Here is the correct one: diff -rubN pw/cpdir.c pw.new/cpdir.c --- pw/cpdir.c Fri Oct 10 13:23:30 1997 +++ pw.new/cpdir.c Thu Nov 19 11:44:48 1998 @@ -80,6 +80,7 @@ if (S_ISDIR(st.st_mode)) { /* Recurse for this */ if (strcmp(e->d_name, ".") != 0 && strcmp(e->d_name, "..") != 0) copymkdir(dst, src, (st.st_mode & 0777), uid, gid); + chflags(dst, st.st_flags); /* * Note: don't propogate 'special' attributes */ @@ -98,8 +99,9 @@ while ((b = read(infd, copybuf, 4096)) > 0) write(outfd, copybuf, b); close(infd); + fchown(outfd, uid, gid); + fchflags(outfd, st.st_flags); close(outfd); - chown(dst, uid, gid); } } } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message