On Thursday, 31. May 2007, Stephan Kulow wrote:

> Because /usr/bin/env takes the user's path into account and as such
> makes the script unpredictable - and less secure.

Actually, the answer is twofold:

a) it was for testing purposes and is currently still in the rpmlint package

b) the main reason is that correct file-requires are not added to the package. 
e.g if your script starts with "#!/usr/bin/env python",  then /usr/bin/env 
will be required while actually /usr/bin/python should have been required. 

Debian for example goes down the long and ugly road of patching each and every 
script that contains /usr/bin/env - for the reason that coolo gave you. 

> I suggest we create a rpm macro to replace /usr/bin/env <ARG> with the
> correct path to ARG though as this might be a common task in quite some
> packages.

I agree, many packages are affected, and I was trying to look into fixing the 
rpm magic. But not enough time yet. 


Greetings,
Dirk
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to