Subject: Re: bugs and/or misfeatures in namei changes
To: John F. Woods <jfw@jfwhome.funhouse.com>
From: Rick Kelly <rmk@rmkhome.rmkhome.com>
List: current-users
Date: 05/10/1997 13:05:05
John F. Woods said:

>I'm currently running Jason Thorpe's DMA test kernel, whose source
>date I don't know (but I assume is probably fairly recent).  However,
>on the off chance that this pathname bug (or is it a "feature"?) is
>still present:
>
>For an archive that I maintain, I have been in the habit of testing
>for a directory that might or might not exist with
>
>	cp file /archive/path/directory/
>
>the idea being that if "/archive/path/directory" exists as a directory,
>I want to copy "file" into it, otherwise it should fail.
>Unfortunately, it now succeeds, copying "file" to
>"/archive/path/directory" (as a regular file).

I see this (mis)behavior here on:

NetBSD 1.0A
NetBSD 1.2
NetBSD 1.2B
SunOS 4.1.3
SunOS 4.1.4

However, SunOS 4.1.1 does the right thing.
-- 
Rick Kelly	rmk@rmkhome.com	    rmk@tencats.rmkhome.com
                http://tencats.rmkhome.com
		http://warthog.rmkhome.com