Subject: Re: bin/18785: config can read directories
To: None <netbsd-bugs@netbsd.org>
From: Julio Merino <jmmv@menta.net>
List: netbsd-bugs
Date: 10/23/2002 21:11:01
On Wed, 23 Oct 2002 14:50:40 -0400
christos@zoulas.com (Christos Zoulas) wrote:

> That'll break for symlinks.
> 
> christos

I tried it before sending the patch... and worked:

$ ./config /tmp
config: cannot read /tmp: Inappropriate file type or format
$ cp /s/src/sys/arch/i386/conf/GENERIC /tmp                                    
$ ./config -s /s/src/sys -b /tmp/build /tmp/GENERIC
Don't forget to run "make depend"
$ ( cd /tmp && ln -s GENERIC SYMLINK )
$ ./config -s /s/src/sys -b /tmp/build2 /tmp/SYMLINK
Don't forget to run "make depend"
$ ls -l /tmp/GENERIC /tmp/SYMLINK
-rw-r--r--  1 jmmv  wheel  36888 Oct 23 21:09 /tmp/GENERIC
lrwxr-xr-x  1 jmmv  wheel      7 Oct 23 21:10 /tmp/SYMLINK -> GENERIC

-- 
Julio Merino (http://jmmv.dyndns.org/) <jmmv@menta.net>