Subject: Re: old cp not compatible with current namei()
To: proprietor - Foo Bar And Grill <greywolf@starwolf.com>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: current-users
Date: 05/19/1997 09:05:37
On Mon, 19 May 1997 06:25:54 -0700 (PDT) 
 proprietor - Foo Bar And Grill <greywolf@starwolf.com> wrote:

This was a bug in cp(1), and has been fixed.

 > 
 > Okay, while POSIX compatibility is a questionably desirable thing,
 > has anyone fixed cp to be compatible with namei()?
 > 
 > # cp netbsd /
 > overwrite /netbsd? y
 > cp: : No such file or directory
 > #
 > 
 > Maybe it's because my userland is behind my kernel, but this is a drag.
 > If you're going to fix namei() to ignore trailing slashes, great, but
 > at least make it not ignore the root directory!  (It appears to be more
 > cp's fault than namei()'s because I can cd to root (/) no problem.)
 > 

Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939