Bug 210524
Summary: | "dhclient --help" sends its output to syslog. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Peter Jones <pjones> |
Component: | dhcp | Assignee: | David Cantrell <dcantrell> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | rawhide | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-10-13 18:52:11 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Peter Jones
2006-10-12 18:31:32 UTC
Well, I found it. Changed it all to printf()'s and then the behavior of dhclient changed. What was happening is the usage() function calls log_info(), log_error(), and log_fatal() in the omapi library, which handles logging the error messages (if an instance of dhclient is found to be running already) or printing messages to stderr if it isn't running already. I changed it to printfs and then had to go find all the calls for usage() and put a return EXIT_FAILURE after displaying the usage screen, because you don't want it to display the help screen and then grab a lease anyway. What the hell are the ISC people smoking? Also, their option parsing code for dhclient is written by hand. They don't use getopt(). I'm going to fix that. Seriously, what the crap? Fixed in rawhide. |