Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Oct 2009 19:10:59 GMT
From:      Thomas Swan <thomas.swan@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/139314: /usr/bin/install -d reports success on failure
Message-ID:  <200910021910.n92JAxYm021669@www.freebsd.org>
Resent-Message-ID: <200910021920.n92JK0Yt042863@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910021910.n92JAxYm021669>