[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Rejected: Bug#122817: Please provide profile.d hook in /etc/profile



On 2008-06-06, Russ Allbery wrote:
> This proposal asks for an /etc/profile.d, the contents of which would be
> sourced by every shell and which could be used to set environment
> variables for all users.

s/every shell/every bourne-type shell/

(and zsh when invoked in compatibility mode, but then it acts as a bourne-
type AFAIK). 

> This is contrary to the intent of Policy 9.9, which explicitly prohibits
> programs from depending on environment variables to get reasonable
> defaults.  

that completely misses the point, the reason for wanting a profile.d is not 
for <random package> to set defaults for itself, but to allow for packaged 
customizations

Note that the exact same mechanism is already available in several places to 
provide customizations of the environment:
- xsession.d
- every non-bourne shell other then zsh already has an equivalent .d
  directory (and has for at least 2 years or so, though granted that they're
  all less commonly used shells)

Could it be abused, contrary to section 9.9? Yes, but:
- then it would be an RC-bug
- it's unlikely (given that this exact mechanism has not caused problems
  when provided elsewhere)
-- 
Cheers, cobaco (aka Bart Cornelis)

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: