Subject: Re: netscape 4.80 (linux) makes kernel whine
To: None <>
From: Andrew Brown <>
List: tech-pkg
Date: 07/23/2004 20:12:12
On Fri, Jul 09, 2004 at 11:24:55PM -0400, Andrew Brown wrote:
>every time i start netscape, the kernel says:
>    set{u,g}id pid 27628 (netstat) was invoked by uid 204 ppid 18595 (netscape) with fd 0 closed
>i was always irked by that, but it wasn't until today that i bit into
>it, chewed, and spat out an answer.
>i've developed a tiny c program that will find the right place in the
>binary and poke it appropriately such that when netstat is executed,
>fd 0 is not closed.  works like a charm.
>do we have any facility whatsoever for doing binary patches like this
>in pkgsrc?  should i just fling something together?
>fwiw, the same thing could be done in perl, but i don't think that
>requiring that perl be installed is a good prerequisite for installing
>something that will never use it.

given the astounding non-negative response i received, i adapted the
binary patching to a separate small pkg (pkgtools/binpatch) and then
patched www/navigator/Makefile.common so that the i386 pkgs (at least)
are "patched".

|-----< "CODE WARRIOR" >-----|             * "ah!  i see you have the internet (Andrew Brown)                that goes *ping*!"       * "information is power -- share the wealth."