Bug 189759 - automount -vd is different than -v -d.
Summary: automount -vd is different than -v -d.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: autofs
Version: 5
Hardware: i386
OS: Linux
medium
low
Target Milestone: ---
Assignee: Ian Kent
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-04-24 13:33 UTC by Thomas Steudten
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-04-24 14:17:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Thomas Steudten 2006-04-24 13:33:25 UTC
Description of problem:

automount does not detect -d flag if called with combined flags like
-vd as -v -d.

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


How reproducible:

automount -vd : no debugging messages
automount -v -d.: debugging messages shown.

Steps to Reproduce:
1.
2.
3.
  
Actual results:
no debug messages shown with -vd

Expected results:
flags detected in combined mode like -vd for -v -d.

Additional info:
autofs-4.1.4-16.2.2

Comment 1 Jeff Moyer 2006-04-24 13:56:22 UTC
That's odd.  Are you starting the daemon by hand?  If you're specifying flags
for the automounter via the master map or the sysconfig file, you should use the
long versions, "--debug" and "--verbose".  However, the two options do the same
thing, so either will suffice.

Ian, do you want to take a look at this?

Comment 2 Thomas Steudten 2006-04-24 14:17:42 UTC
There're long version for the most gnu cmd options. 

Close this bug. Seems that automount gives very rare debug messages, so this
looks like this bug. kill automount gives the same output with "-vd" or "-v -d".
A message like "Debug enabled would be nice".

Comment 3 Jeff Moyer 2006-04-24 14:27:53 UTC
The debug logs are logged at level DEBUG, which means they won't appear in
/var/log/messages.  See http://people.redhat.com/jmoyer for more information on
configuring autofs for debugging.  It is quite apparent when debug output is
enabled!

Comment 4 Thomas Steudten 2006-04-24 15:55:55 UTC
Aaaargh, I don't like to query the source code, to find out, at which level the
debug messages are logged. The normal case is that -d don't forks and prints
debug output to stderr.
Why should the DEBUG output not appear in /var/log/messages? This is the case
for standard FC5 syslog.conf setup, because the min level is info.
However, the man page should point to that, that the debug output is send with
level DEBUG!

So, please add a notice to the man page for FC5.
Thanks.


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