[PATCH - ping] Don't unlink /dev/null on darwin

Daniel Jacobowitz drow@false.org
Mon Feb 14 21:10:00 GMT 2005


On Mon, Feb 14, 2005 at 09:59:36AM -0800, Zack Weinberg wrote:
> The second patch is a possible general stopgap to prevent this sort of
> scenario from causing damage in the future.  It is a very big hammer,
> and I recognize that it may break stuff, but I am nonetheless deadly
> serious about proposing it.  It is not ready for inclusion as is - it
> may well be in the wrong place (Peter, if you feel like it, I'd
> appreciate your experimenting to see whether or not it prevents the
> Darwin assembler from unlinking /dev/null if you run the problem
> command by hand as root) and it certainly needs autoconf goo.  Right
> now, though, what I want to hear about is not these minor details, but
> rather compelling reasons why we should *not* do this, because I can't
> think of any.

I think that forbidding gcc from running as root is a hideously bad
idea.  That's site policy.  And it will break everyone else's make
install that runs gcc.  And it will break lots of Debian package builds
because fakeroot will trigger it.

-- 
Daniel Jacobowitz
CodeSourcery, LLC



More information about the Gcc-patches mailing list