From owner-svn-src-head@FreeBSD.ORG Wed Feb 17 20:31:12 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 580AF106568B; Wed, 17 Feb 2010 20:31:12 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from mail-px0-f182.google.com (mail-px0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1B5B58FC19; Wed, 17 Feb 2010 20:31:11 +0000 (UTC) Received: by pxi12 with SMTP id 12so5109328pxi.33 for ; Wed, 17 Feb 2010 12:31:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=z3IQKdeHLrUfWAkvdY8mhKFATQ6fb2Wts/C/Er73NNc=; b=QmFmE1OMMZF3/oC3Z9EKqhTo7FF6I5YsmSEFZIr17e/5DRK19WwfcWYn+TaLCWOh2/ 1QFeOe0ktI8ldBDdWRKEvTaHFth+CT31wPbZrisYt9z57l3AH5M0Kqc9WP3zb0/Eey9x uU94wHa3/PLS6y4hNyjhCtkxpt8OmAPp9UC4w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=hJtjUiyvv3C2wc18uMFGSimaepyItzAzi7AkGzxxKTABRD1XAR7uOWNZGN3saerL9f KN1JmCAA1gPnH6CdrqV4aUQVua0DOgQ5sXlDCSGWrBoTlgRJbmMdGxxhGe5dKPMi95DX 51B9OUmT5FuAAAezhQgAbGbAKi6eqwxr1FXWM= MIME-Version: 1.0 Received: by 10.142.247.33 with SMTP id u33mr5648801wfh.219.1266438671529; Wed, 17 Feb 2010 12:31:11 -0800 (PST) In-Reply-To: <201002170911.o1H9BL6m095996@svn.freebsd.org> References: <201002170911.o1H9BL6m095996@svn.freebsd.org> Date: Wed, 17 Feb 2010 12:31:11 -0800 Message-ID: <7d6fde3d1002171231u163ce4ao18478f4af6180d1b@mail.gmail.com> From: Garrett Cooper To: Poul-Henning Kamp Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r203990 - head/lib/libc/sys X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Feb 2010 20:31:12 -0000 On Wed, Feb 17, 2010 at 1:11 AM, Poul-Henning Kamp wrote: > Author: phk > Date: Wed Feb 17 09:11:21 2010 > New Revision: 203990 > URL: http://svn.freebsd.org/changeset/base/203990 > > Log: > =A0Mention EISDIR as a possible errno. > > Modified: > =A0head/lib/libc/sys/unlink.2 > > Modified: head/lib/libc/sys/unlink.2 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/lib/libc/sys/unlink.2 =A0Wed Feb 17 09:09:12 2010 =A0 =A0 =A0 = =A0(r203989) > +++ head/lib/libc/sys/unlink.2 =A0Wed Feb 17 09:11:21 2010 =A0 =A0 =A0 = =A0(r203990) > @@ -114,6 +114,8 @@ succeeds unless: > =A0.Bl -tag -width Er > =A0.It Bq Er ENOTDIR > =A0A component of the path prefix is not a directory. > +.It Bq Er EISDIR > +The named file is a directory. > =A0.It Bq Er ENAMETOOLONG > =A0A component of a pathname exceeded 255 characters, > =A0or an entire path name exceeded 1023 characters. This is wrong as per POSIX (): [EPERM] The file named by path is a directory, and either the calling process does not have appropriate privileges, or the implementation prohibits using unlink() on directories. ... and the current manpage ... [EPERM] The named file is a directory. The manpage needs to be modified to note that, or the offender needs to be fixed. Thanks, -Garrett