Subject: Re: bugs and/or misfeatures in namei changes
To: John F. Woods <jfw@jfwhome.funhouse.com>
From: Jukka Marin <jmarin@pyy.jmp.fi>
List: current-users
Date: 05/10/1997 18:30:51
On Sat, May 10, 1997 at 11:25:26AM -0400, John F. Woods wrote:

> 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).

jmarin@kyyhky omat/ekg %(58)ll /tmp/melmac
ls: /tmp/melmac: No such file or directory
jmarin@kyyhky omat/ekg %(59)cp p.c /tmp/melmac/
jmarin@kyyhky omat/ekg %(60)ll /tmp/melmac
-rw-------  1 jmarin  wheel  15373 May 10 18:29 /tmp/melmac
jmarin@kyyhky omat/ekg %(61)uname -a
NetBSD kyyhky 1.2 NetBSD 1.2 (KYYHKY) #6: Fri May  9 21:26:01 EET DST 1997     root@kyyhky:/store/src/sys/arch/i386/compile/KYYHKY i386

Btw, what _is_ this namei thing? :-)

  -jm

-- 

                       1503 kHz @ 22:30 EET DST Mon-Fri

                     ---> http://www.jmp.fi/~jmarin/ <---