From imp@village.org  Tue Apr 16 12:46:34 1996
Received: from rover.village.org (rover.village.org [204.144.255.49])
          by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id MAA02929
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 16 Apr 1996 12:46:33 -0700 (PDT)
Received: (from imp@localhost) by rover.village.org (8.7.5/8.6.6) id NAA05546; Tue, 16 Apr 1996 13:46:22 -0600 (MDT)
Message-Id: <199604161946.NAA05546@rover.village.org>
Date: Tue, 16 Apr 1996 13:46:22 -0600 (MDT)
From: Warner Losh <imp@village.org>
Reply-To: imp@village.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: chroot.2 docs not complete
X-Send-Pr-Version: 3.2

>Number:         1148
>Category:       docs
>Synopsis:       chroot(2) missing EPERM
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 16 12:50:01 PDT 1996
>Closed-Date:    Wed Apr 17 23:12:34 MET DST 1996
>Last-Modified:  Wed Apr 17 23:14:11 MET DST 1996
>Originator:     Warner Losh
>Release:        FreeBSD 2.1.0-RELEASE i386 (and -current)
>Organization:
Warner Losh                                                     imp@village.org
>Environment:
>Description:

chroot can return EPERM when the effective user ID is not the
super-user, yet this case is not reflected in the man page.

>How-To-Repeat:

man 2 chroot

>Fix:
	
Apply this patch to the man page:

Index: chroot.2
===================================================================
RCS file: /home/imp/FreeBSD/CVS/src/lib/libc/sys/chroot.2,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 chroot.2
--- chroot.2    1994/05/27 04:58:09     1.1.1.1
+++ chroot.2    1996/04/16 19:40:01
@@ -71,6 +71,8 @@
 .Bl -tag -width [ENOTDIR]
 .It Bq Er ENOTDIR
 A component of the path name is not a directory.
+.It Bq Er EPERM
+The effective user ID is not the super-user.
 .It Bq Er EINVAL
 The pathname contains a character with the high-order bit set.
 .It Bq Er ENAMETOOLONG


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: joerg 
State-Changed-When: Wed Apr 17 23:12:34 MET DST 1996 
State-Changed-Why:  
Suggested fix applied in rev. 1.2. 

>Unformatted:
 
