From owner-cvs-src@FreeBSD.ORG Sat Nov 20 00:51:28 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7912916A4CE; Sat, 20 Nov 2004 00:51:28 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7075143D46; Sat, 20 Nov 2004 00:51:27 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id iAK0pQ4C028969; Sat, 20 Nov 2004 02:51:26 +0200 (EET) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 98550-06; Sat, 20 Nov 2004 02:51:25 +0200 (EET) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id iAK0pPZi028966 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 20 Nov 2004 02:51:25 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id iAK0pSAq026007; Sat, 20 Nov 2004 02:51:28 +0200 (EET) (envelope-from ru) Date: Sat, 20 Nov 2004 02:51:28 +0200 From: Ruslan Ermilov To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Message-ID: <20041120005128.GB20543@ip.net.ua> References: <200411200041.iAK0f8WN089836@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VrqPEDrXMn8OVzN4" Content-Disposition: inline In-Reply-To: <200411200041.iAK0f8WN089836@repoman.freebsd.org> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at ip.net.ua Subject: Re: cvs commit: src/bin/rmdir rmdir.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Nov 2004 00:51:28 -0000 --VrqPEDrXMn8OVzN4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Nov 20, 2004 at 12:41:08AM +0000, Ruslan Ermilov wrote: > ru 2004-11-20 00:41:08 UTC >=20 > FreeBSD src repository >=20 > Modified files: > bin/rmdir rmdir.c=20 > Log: > Do not emit a spurious warning when "directory" argument > to "rmdir -p" is absolute, with one or more leading slash. > =20 > Revision Changes Path > 1.19 +3 -1 src/bin/rmdir/rmdir.c >=20 Note that POSIX.1-2004 requires that the -p option be handled like this, for each "dir" argument: rmdir rmdir -p $(dirname ) So the fact that it won't remove /1/2/../2/3 is at least standards compliant. ;) Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --VrqPEDrXMn8OVzN4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBnpUQqRfpzJluFF4RAslCAJkBaQreNbrBOBXB+VywwZMFOLcvUQCgnY+B yCv50WyTbes/1T8mQE3ZrEI= =RHKc -----END PGP SIGNATURE----- --VrqPEDrXMn8OVzN4--