Subject: bin/32589: install -d ignores existing non-directories
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <joerg@netbsd.org>
List: netbsd-bugs
Date: 01/22/2006 03:30:00
>Number:         32589
>Category:       bin
>Synopsis:       install -d ignores existing non-directories
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 22 03:30:00 +0000 2006
>Originator:     joerg@netbsd.org
>Release:        NetBSD 3.99.11
>Organization:
pkgsrc
>Environment:
System: NetBSD britannica.bec.de 3.99.11 NetBSD 3.99.11 (THINKPAD) #0: Wed Nov 16 18:29:15 CET 2005 joerg@britannica.bec.de:/home/joerg/wd/NetBSD/src/sys/arch/i386/compile/THINKPAD i386
Architecture: i386
Machine: i386
>Description:

When using -d install is supposed to create the arguments as
directories, recursively creating the parents. NetBSD's install ignores
any already existing non-directories, instead of rising an error.
The latter is the behaviour implemented by FreeBSD and DragonFly.
It is also inconsistent with mkdir.

>How-To-Repeat:
cd /tmp; touch test; install -d test test2

Observe that test is left alone and test2 created as directory.
>Fix:
None yet.