Hello Annibal,
I got bitten by this bug during etch --> lenny upgrade today.
As explain by Jan Schumacher and andy bezella, the call to pidofproc in
/etc/init.d/portmap starts portmap without interpretting $OPTIONS.
This is bad. Any plan to fix this in time for lenny ?
As you can see in the following, there seems to be missing
quote/backquote around the call to pidofproc (/etc/init.d/portmap
modified with : set -x, a couple of netstat around the pidofproc) :
$ sudo /etc/init.d/portmap start
+ test -f /sbin/portmap
+ . /lib/lsb/init-functions
++ FANCYTTY=
++ '[' -e /etc/lsb-base-logging.sh ']'
++ true
+ OPTIONS=
+ '[' -f /etc/default/portmap ']'
+ . /etc/default/portmap
++ OPTIONS=-l
+ case "$1" in
+ log_begin_msg 'Starting portmap daemon...'
+ '[' -z 'Starting portmap daemon...' ']'
+ echo -n 'Starting portmap daemon...'
Starting portmap daemon...+ netstat -natp
Connexions Internet actives (serveurs et établies)
Proto Recv-Q Send-Q Adresse locale Adresse distante Etat
PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:*
LISTEN 2577/sshd
tcp 0 0 127.0.0.1:6010 0.0.0.0:*
LISTEN 3188/0
tcp 0 0 192.168.28.39:22 192.168.28.28:41225
ESTABLISHED 3183/sshd: admincri
tcp 0 0 127.0.0.1:53119 127.0.0.1:111
TIME_WAIT -
tcp 0 0 127.0.0.1:32904 127.0.0.1:111
TIME_WAIT -
+ pid=pidofproc
+ portmap <---------- BAD
+ netstat -natp
Connexions Internet actives (serveurs et établies)
Proto Recv-Q Send-Q Adresse locale Adresse distante Etat
PID/Program name
tcp 0 0 0.0.0.0:111 0.0.0.0:*
LISTEN 4022/portmap
tcp 0 0 0.0.0.0:22 0.0.0.0:*
LISTEN 2577/sshd
tcp 0 0 127.0.0.1:6010 0.0.0.0:*
LISTEN 3188/0
tcp 0 0 192.168.28.39:22 192.168.28.28:41225
ESTABLISHED 3183/sshd: admincri
tcp 0 0 127.0.0.1:53119 127.0.0.1:111
TIME_WAIT -
tcp 0 0 127.0.0.1:32904 127.0.0.1:111
TIME_WAIT -
+ '[' -n '' ']'
+ start-stop-daemon --start --exec /sbin/portmap -- -l
/sbin/portmap already running. <----------------- BAD
@+,
Fab
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]