Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Descriptionrobbe.vanlerberghe
2021-11-22 12:02:29 UTC
In windows, a share that ends with a dollar sign is a hidden share.
Using autofs, the provided auto.smb script fails on these, as it incorrectly adds a quote for the trailing dollar of these special Windows mounts. But they are already surrounded by double quotes.
This is fixed in autofs 5.1.7, but not in the current rhel8 version (5.1.4-74).
It would be nice if this fix could be pushed to the rhel 8 (and possibly rhel 7) release(s). Granted, it's an example script but it is confusing and timeconsuming to figure it out, and the bug has been there since 2016...
See also the Fedora and Ubuntu bugtrackers:
https://bugzilla.redhat.com/show_bug.cgi?id=1409103https://bugs.launchpad.net/ubuntu/+source/autofs/+bug/1680224
Change needed:
/etc/auto.smb:
@@ -76,7 +76,7 @@
loc = $2
# Enclose mount dir and location in quotes
- # Double quote "$" in location as it is special
- gsub(/\$$/, "\\$", loc);
- gsub(/\&/,"\\\\&",loc)
print " \\\n\t \"/" dir "\"", "\"://" key "/" loc "\""
I can apply the upstream patch for that to RHEL-8, it's already in the coming
RHEL-9.
But RHEL-7 is past general bug fix maintenance so we would need a sound
business case for that.
Also we don't normally back port changes to earlier releases, again a
business case is needed and it's a bit of a high bar to get things
accepted.
Comment 2robbe.vanlerberghe
2021-11-22 13:24:11 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (autofs bug fix and enhancement update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2022:2084