Anonymous | Login | 2024-08-24 23:19 EDT | ![]() |
Main | My View | View Issues | Change Log | Roadmap |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
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 | |||||||
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 | |||||||
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. | |||||||
fixed in git revision | ||||||||
fixed in mtn revision | ||||||||
Attached Files | ||||||||
![]() |
|
(0002229) obilodeau (reporter) 2011-09-20 11:02 |
triage |
(0003773) lmunro (administrator) 2015-02-13 15:39 |
Closing old bugs. If we haven't fixed them in four years they are either not a bug, no longer relevant or not worth it. |
![]() |
|||
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 |
Copyright © 2000 - 2012 MantisBT Group |