PacketFence - BTS - PacketFence | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0001272 | PacketFence | error-handling | public | 2011-09-20 10:38 | 2015-02-13 15:39 |
Reporter | psnizek | ||||
Assigned To | |||||
Priority | low | Severity | tweak | Reproducibility | always |
Status | closed | Resolution | open | ||
Platform | OS | OS Version | |||
Product Version | 2.2.1 | ||||
Target Version | Fixed in Version | ||||
fixed in git revision | |||||
fixed in mtn revision | |||||
Summary | 0001272: pfcmd checkup non-zero return value if everything isok | ||||
Description | pfcmd checkup always returns non-zero values. This can cause premature exits if shell scripts use set -e. This return value seems OK: Checking configuration sanity... FATAL - internal network(s) not defined! root@ar:/usr/local/pf/bin# echo $? 255 This return value does not seem to be OK: root@ar:/usr/local/pf/bin# ./pfcmd checkup Checking configuration sanity... Nothing to report. root@ar:/usr/local/pf/bin# echo $? 1 | ||||
Steps To Reproduce | |||||
Additional Information | small script to test: #!/bin/bash set -e /usr/local/pf/bin/pfcmd checkup echo "If you can read this, exit status is 0" "Patch": sed -i 's/exit(1)/exit(0)/' pfcmd (only tested in conjunction with pfcmd checkup). | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2011-09-20 10:38 | psnizek | New Issue | |||
2011-09-20 11:02 | obilodeau | Note Added: 0002229 | |||
2011-09-20 11:02 | obilodeau | Priority | normal => low | ||
2011-09-20 11:02 | obilodeau | Category | refactoring => error-handling | ||
2011-09-20 11:02 | obilodeau | Target Version | => +1 | ||
2015-02-13 15:39 | lmunro | Note Added: 0003773 | |||
2015-02-13 15:39 | lmunro | Status | new => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|