Re: IFS pollution from localpkg

From: Mike Makonnen <mtm_at_identd.net>
Date: Sun, 3 Oct 2004 12:19:13 +0300
On Sat, Oct 02, 2004 at 03:18:52PM -0700, Doug White wrote:
> I guess no one changes the script_name_sep rc.conf variable to something
> more dangerous than the default space...
> 
> Anyway, I think we should investigate running local package scripts with
> IFS (and other hazardous variables) stripped using env. Or perhaps not
> play with IFS at all unless the user sets script_name_sep, and change the
> default accordingly.
> 
> I'm not sure why this doesn't mess more stuff up :-/

It looks like this particular bug has been around since that feature
was introduced in rev. 1.272 way back in July 2001. I guess people don't
use it that much.

Does the following patch fix your problem?

Cheers.
-- 
Mike Makonnen  | GPG-KEY: http://www.identd.net/~mtm/mtm.asc
mtm_at_identd.net | Fingerprint: AC7B 5672 2D11 F4D0 EBF8  5279 5359 2B82 7CD4 1F55
mtm_at_FreeBSD.Org| FreeBSD - Unleash the Daemon !

Received on Sun Oct 03 2004 - 07:19:27 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:15 UTC