From owner-freebsd-bugs Tue Apr 16 12:50:04 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA03144 for bugs-outgoing; Tue, 16 Apr 1996 12:50:04 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA03137 Tue, 16 Apr 1996 12:50:02 -0700 (PDT) Resent-Date: Tue, 16 Apr 1996 12:50:02 -0700 (PDT) Resent-Message-Id: <199604161950.MAA03137@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, imp@village.org 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 ; 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 Reply-To: imp@village.org To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: docs/1148: chroot.2 docs not complete Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 1148 >Category: docs >Synopsis: chroot(2) missing EPERM >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Tue Apr 16 12:50:01 PDT 1996 >Last-Modified: >Originator: Warner Losh >Organization: Warner Losh imp@village.org >Release: FreeBSD 2.1.0-RELEASE i386 (and -current) >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 >Audit-Trail: >Unformatted: