Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Apr 2010 14:44:42 -0700
From:      Doug Barton <dougb@FreeBSD.org>
To:        Alberto Villa <avilla@freebsd.org>
Cc:        ports@freebsd.org, Eitan Adler <eitanadlerlist@gmail.com>
Subject:   Re: feature request for portmaster: check for permissions on --check-depends and friends
Message-ID:  <4BD6094A.4090204@FreeBSD.org>
In-Reply-To: <201004262313.39115.avilla@freebsd.org>
References:  <u2ta0777e081004251203t90986559m54fe956b679801@mail.gmail.com> <l2wdfe7d2901004260113g1d3598e9we91f01dc3b026162@mail.gmail.com> <4BD5EE8F.6080005@FreeBSD.org> <201004262313.39115.avilla@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 04/26/10 14:13, Alberto Villa wrote:
> On Monday 26 April 2010 21:50:39 Doug Barton wrote:
>>> ...the "-n" flag would be more appropriate.
>>
>> It only applies to builds/upgrades.
> 
> and my suggestion would have been: "extend it to other parts of the program" 

The features other than building already include confirmation steps, so
there is actually no harm in running them as root to start with.

> but this was just in theory, personally i would do nothing

Thanks, that's the answer I was hoping for. :)

>>> what if i, as a regular
>>> user, have write access to /var/db/(ports|pkg)?
>>
>> That would be silly. :)
> 
> definitely, but ain't we all a bit silly? ;)

My point is that it is actually possible to over-engineer things in an
effort to try to prevent every possible mistake. While I definitely try
to be cautious with my programming (some say too cautious) if you make
something idiot-PROOF the universe will simply make better idiots.

I don't want to sound flippant, but the code in portmaster is already
WAY too complex. I am resistant to adding more complexity without a
clear need.


Doug

-- 

	... and that's just a little bit of history repeating.
			-- Propellerheads

	Improve the effectiveness of your Internet presence with
	a domain name makeover!    http://SupersetSolutions.com/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BD6094A.4090204>