Package: tor
Version: 0.1.0.15-1.0.1
Severity: normal

Last line in /etc/default/tor:

ulimit -c unlimited

The file is included in script /etc/init.d/tor which uses '#!/bin/sh' as
shebang line. Line 72 in /etc/init.d/tor contains another ulimit
command.

[EMAIL PROTECTED] ~ % bash -c 'ulimit -c unlimited ; echo foo' 
foo
[EMAIL PROTECTED] ~ % zsh -c 'ulimit -c unlimited ; echo foo'  
foo
[EMAIL PROTECTED] ~ % sh -c 'ulimit -c unlimited ; echo foo' 
zsh: command not found: ulimit
foo
[EMAIL PROTECTED] ~ % 

So using zsh as /bin/sh results in:
# /etc/init.d/tor start
/etc/default/tor:45: command not found: ulimit

AFAICS this ulimit command is not part of IEEE Std 1003.1:
http://www.opengroup.org/onlinepubs/009695399/utilities/ulimit.html

Using #!/bin/bash in the shebang-line fixes the problem.

regards,
-mika-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to