Bug 210524 - "dhclient --help" sends its output to syslog.
Summary: "dhclient --help" sends its output to syslog.
Alias: None
Product: Fedora
Classification: Fedora
Component: dhcp
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: David Cantrell
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2006-10-12 18:31 UTC by Peter Jones
Modified: 2007-11-30 22:11 UTC (History)
0 users

Clone Of:
Last Closed: 2006-10-13 18:52:11 UTC

Attachments (Terms of Use)

Description Peter Jones 2006-10-12 18:31:32 UTC
Description of problem:
"dhclient --help" sends its output to syslog.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. dhclient --help
Actual results:
no output to stdout or stderr, option summary and readme crap in syslog

Expected results:
option summary on standard output.

Additional info:

Comment 1 David Cantrell 2006-10-13 17:50:57 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?

Comment 2 David Cantrell 2006-10-13 18:52:11 UTC
Fixed in rawhide.

Note You need to log in before you can comment on or make changes to this bug.