From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 10 20:19:01 2006 Return-Path: X-Original-To: hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ECDE416A562 for ; Tue, 10 Oct 2006 20:19:01 +0000 (UTC) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (relay0.rambler.ru [81.19.66.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A8DB43D49 for ; Tue, 10 Oct 2006 20:19:00 +0000 (GMT) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (localhost [127.0.0.1]) by relay0.rambler.ru (Postfix) with ESMTP id 48A855CF5; Wed, 11 Oct 2006 00:18:59 +0400 (MSD) Received: from edoofus.park.rambler.ru (unknown [81.19.65.108]) by relay0.rambler.ru (Postfix) with ESMTP id 285355CEB; Wed, 11 Oct 2006 00:18:59 +0400 (MSD) Received: (from ru@localhost) by edoofus.park.rambler.ru (8.13.8/8.13.8) id k9AKJ0TL078911; Wed, 11 Oct 2006 00:19:00 +0400 (MSD) (envelope-from ru) Date: Wed, 11 Oct 2006 00:19:00 +0400 From: Ruslan Ermilov To: Alex Unleashed Message-ID: <20061010201900.GA67123@rambler-co.ru> References: <5e4707340610100624j38ce9f8du7741bd027eb8cb1b@mail.gmail.com> <20061010152433.GA35377@rambler-co.ru> <5e4707340610101100g5dea53e0tc53eaef080c40c87@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EVF5PPMfhYS0aIcm" Content-Disposition: inline In-Reply-To: <5e4707340610101100g5dea53e0tc53eaef080c40c87@mail.gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: No virus found Cc: hackers@FreeBSD.org Subject: Re: mkdir -m option POSIX compliance X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Oct 2006 20:19:02 -0000 --EVF5PPMfhYS0aIcm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 10, 2006 at 08:00:21PM +0200, Alex Unleashed wrote: > On 10/10/06, Ruslan Ermilov <[1]ru@freebsd.org> wrote: >=20 > On Tue, Oct 10, 2006 at 03:24:14PM +0200, Alex Unleashed wrote: > > Hi all, > > > > "mkdir -m mode -p /some/directory" calls chmod() on /some/directory > even if > > it already exists, effectively changing the mode. POSIX specifies = that > this > > mode may only be applied to newly created directories. Patch attac= hed. > > Please look at the URLs referenced in the patch for further > information. > > > I've modified your patch slightly, to save a variable. > How does this look to you? >=20 > Looks good to me. >=20 OK, committed. --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --EVF5PPMfhYS0aIcm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFLAA0qRfpzJluFF4RAmT8AKCVBFWoctNBYrFBDVdco/p+FRO1+wCgnXP4 HnPE7y3iXaIPlMNHD8C5Uv0= =K3lq -----END PGP SIGNATURE----- --EVF5PPMfhYS0aIcm--