*BSD News Article 32589


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!EU.net!ieunet!news.ieunet.ie!jkh
From: jkh@whisker.hubbard.ie (Jordan Hubbard)
Newsgroups: comp.os.386bsd.questions
Subject: Re: pkg_add hosed me!
Date: 11 Jul 1994 01:41:45 GMT
Organization: Jordan Hubbard
Lines: 43
Message-ID: <JKH.94Jul11014147@whisker.hubbard.ie>
References: <2vpuh2$mfg@news.csus.edu>
NNTP-Posting-Host: whisker.hubbard.ie
In-reply-to: lirwin@silicon.csci.csusb.edu's message of 10 Jul 1994 22:59:46 GMT

In article <2vpuh2$mfg@news.csus.edu> lirwin@silicon.csci.csusb.edu (Loren Irwin) writes:

   I decided to add some packages, and installed a few without
   problems.  Then I did a pkg_add xftp_bin.tgz  and
   this did a nasty thing:  It looks like it did a
   chmod -R 444 / 

That is really weird!  I'm looking at the packing list for the xftp
package, and it basically looks like this:

@name xftp_bin
@cwd /usr/X386
@mode 555
bin/xftp
@mode 444
lib/X11/app-defaults/Xftp
man/man1/xftp.1x
@cwd .
@ignore
+COMMENT
@ignore
+DESC

The mode 444 stuff should ONLY be applied to :
	/usr/X386/lib/X11/app-defaults/Xftp
	/usr/X386/man/man1/xftp.1x

Oh barf.  I just saw it - there's a line with only whitespace in it at
the end of the packing list, and you probably ran into the dreaded
`blank line gets treated as null filename' bug!  It ended up doing
a `chmod -R 444 .', and let me guess - you were in / at the time! :-(

Foo.  I've fixed the package so it at least won't do this to anyone
else, now I'll see if this bug has somehow reappeared in the
pkg_install software on freefall! :-( I assume you had a fairly
up-to-date version of the package installation stuff?

Real sorry about this!

					Jordan

--
Jordan K. Hubbard	FreeBSD core team	Clams are your friends