reopen 493407
found 493407 3.2-17
thanks

Whilst your fix may well fix dash it doesn't solve the issue I reported
with set -e scripts.

I did dgkg-source -x for each of the lsbs and moved them into 3.2-blah
then created a simple test:
#!/bin/sh -e

echo "Importing $1/init-functions"
. $1/init-functions

log_warning_msg "Only a warning"

echo "OK!"


i.e. it should output a warning and then OK! if it's working.

The results are:
[EMAIL PROTECTED] ~/lsb]$ ./lsb-test.sh lsb-3.2-15
Importing lsb-3.2-15/init-functions
Only a warning
OK!
[EMAIL PROTECTED] ~/lsb]$ ./lsb-test.sh lsb-3.2-16
Importing lsb-3.2-16/init-functions
Only a warning (warning).
[EMAIL PROTECTED] ~/lsb]$ ./lsb-test.sh lsb-3.2-17
Importing lsb-3.2-17/init-functions
Only a warning (warning).
[EMAIL PROTECTED] ~/lsb]$


This is because the functions need to return 0 on success and anything
else on failure.

This is still going to break my (and other people's) networking on
reboot.

Chaning log_end_msg to return 0 and not return $retval would fix it I
believe.

Simon.

-- 
oOoOo          "CATS. CATS ARE NICE." - Death, "Sourcery"          oOoOo
 oOoOo                                                            oOoOo
  oOoOo                                                          oOoOo



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

Reply via email to