Subject: Re: Problem updating for "NetBSD Security Advisory"
To: John Fisher <jdf@rse.com>
From: Andrew Brown <atatat@atatdot.net>
List: netbsd-users
Date: 03/13/2003 11:50:36
>Can someone help me understand the error message I am getting when tring to
>update /usr/src/usr.bin/file. This all stems of course from the "NetBSD
>Security Advisory 2003-003 Buffer Overflow in file(1)" annoucement I just
>read on mane.os.netbsd.announce news group.
>
>I first set my environment:
>/usr/src > export CVSEDITOR=/usr/local/bin/emacs
>/usr/src > export CVSROOT=:pserver:anoncvs@anoncvs.netbsd.org:/cvsroot
>/usr/src > export CVS_RSH=ssh
>
>Then run the command that was suggested in the announcement:
>/usr/src > cvs update -d -r netbsd-1-6 -P usr.bin/file
>
>And the result:
>cvs server: Updating usr.bin/file
>cvs server: cannot open directory /cvsroot/basesrc/usr.bin/file: No such \
>file or directory
>cvs server: skipping directory usr.bin/file
>
>My sources for NetBSD-1.6 are from 11-02-2002.
i don't recall exactly *when* this was done, but the myriad of cvs
collections (like "basesrc and "gnusrc" and "sharesrc", etc) were
merged back together under one "src".
try this command in the file source directory
find . -name Repository | \
xargs perl -i -pe 's:^(/cvsroot/)?(base|share|gnu|sys)src/:src/:'
and then try to update again. if the update works, you may wish to
run that same command at the root of your source tree.
note, only the source tree, not the pkgsrc tree, or the xsrc tree.
--
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org * "ah! i see you have the internet
twofsonet@graffiti.com (Andrew Brown) that goes *ping*!"
werdna@squooshy.com * "information is power -- share the wealth."