Red Hat Bugzilla – Bug 138606
autofs appending extra character when mounting SMB sharepoints
Last modified: 2007-11-30 17:07:05 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.3)
Description of problem:
I have an autofs script to enable mounting sharepoints on a Windows
To mount the "java" sharepoint on "roach", I go to
for which the automount script produces
This used to work with autofs-3.1.7-41 (pre-upgrade) and
autofs-4.1.2-2 (FC2 system) as well as RH9, but on RH-ES3 update 3 I
get the following in /var/log/messages:
Nov 10 17:35:46 wendy automount: >> SMB connection failed
Nov 10 17:35:46 wendy automount: mount(generic): failed to
mount //roach/javaa (type smbfs) on
Nov 10 17:35:46 wendy automount: failed to mount
note the doulbe "a" in "failed to mount //roach/javaa"
As a workaround I can create a sharepoint "javaa" (double "a") on the
windows server, so SAMBA seems to be working, just being told the wrog
sharepoint name. Also, hidden sharepoints (\\roach\h$) work, it seems
sharepoints ending in non-alphanumerics aren't mangled.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
to auto.master, create /home/thomas.sprinkmeier/mnt/.automount and
2. create /home/thomas.sprinkmeier/bin/automount.pl, a simple stub
script that echos the line above will do:
3. ls /home/thomas.sprinkmeier/mnt/.automount/roach.java
This wil fail unless ROACH is sharing JAVAA (double "a")
Actual Results: errors in /var/log/messages, see description
Expected Results: //roach/java should be automounted and available,
as it used to be pre-upgrade to release 3
Could you please add the --debug option to your auto.master for this
entry? Also, add the following to your /etc/syslog.conf:
Then restart syslogd (or send it a HUP signal):
# killall -HUP syslogd
and restart automount
# service autofs restart
Then, reproduce the problem and send me the contents of /var/log/debug.
Created attachment 109854 [details]
Description of test
This is a description of the tests I did.
Created attachment 109855 [details]
autofs config file
added the -debug as requested
Created attachment 109856 [details]
Created attachment 109857 [details]
I'm curious, does your script place a '\n' at the end of the last line of
output? I think this would be an interim solution to your problem.
I do have a patch which should fix this. I'll update this bug when it has been
I added a \n to the line generated by the script, and now it works!
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.