From owner-freebsd-bugs@FreeBSD.ORG Fri Oct 2 19:20:02 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1DB5D106568B for ; Fri, 2 Oct 2009 19:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D62848FC1D for ; Fri, 2 Oct 2009 19:20:01 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n92JK0lg042864 for ; Fri, 2 Oct 2009 19:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n92JK0Yt042863; Fri, 2 Oct 2009 19:20:00 GMT (envelope-from gnats) Resent-Date: Fri, 2 Oct 2009 19:20:00 GMT Resent-Message-Id: <200910021920.n92JK0Yt042863@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Thomas Swan Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3546A10656A6 for ; Fri, 2 Oct 2009 19:11:00 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 24D2A8FC0A for ; Fri, 2 Oct 2009 19:11:00 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n92JAx05021670 for ; Fri, 2 Oct 2009 19:10:59 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n92JAxYm021669; Fri, 2 Oct 2009 19:10:59 GMT (envelope-from nobody) Message-Id: <200910021910.n92JAxYm021669@www.freebsd.org> Date: Fri, 2 Oct 2009 19:10:59 GMT From: Thomas Swan To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: bin/139314: /usr/bin/install -d reports success on failure X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Oct 2009 19:20:02 -0000 >Number: 139314 >Category: bin >Synopsis: /usr/bin/install -d reports success on failure >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Oct 02 19:20:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Thomas Swan >Release: 4.x, 6.x, 7.x >Organization: >Environment: FreeBSD localhost 7.2-STABLE FreeBSD 7.2-STABLE #0: Tue Aug 4 16:11:51 CDT 2009 root@localhost:/usr/obj/usr/src/sys/SMALL-SMP i386 >Description: /usr/bin/install exits zero when it should exit non-zero when installing a directory. install should exit non-zero according to the man page. >How-To-Repeat: as root: # /usr/bin/install -d -m755 /tmp/root-owned as a mortal: $ /usr/bin/install -d -m755 /tmp/root-owned install: chmod 755 /tmp/root-owned: Operation not permitted $ echo $? 0 >Fix: >Release-Note: >Audit-Trail: >Unformatted: