Summary: | /etc/rc.d/sendmail status returns the wrong exit code | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | Jim Pirzyk <pirzyk> | ||||||
Component: | conf | Assignee: | freebsd-rc (Nobody) <rc> | ||||||
Status: | Open --- | ||||||||
Severity: | Affects Some People | CC: | 0mp, eugen, gshapiro, jilles | ||||||
Priority: | --- | Keywords: | patch | ||||||
Version: | 11.1-RELEASE | Flags: | 0mp:
maintainer-feedback-
|
||||||
Hardware: | Any | ||||||||
OS: | Any | ||||||||
Attachments: |
|
Description
Jim Pirzyk
2017-10-20 17:05:32 UTC
Created attachment 187329 [details]
Proposed patch to return non zero error code.
The idea seems good but adding exit statuses does not seem appropriate. I suggest the maximum instead: exit $(( _ret > $? ? _ret : $? )) The semicolon after exit is unnecessary and the style is to leave it off. Created attachment 187544 [details]
Proposed patch to return non zero error code (2nd try)
Updated
Updated the patch with the suggestions but changed the references to _ret to $_ret Dear maintainer, please take a look. |