[systemd-bugs] [Bug 89851] fstab-generator interprets backslashes in CIFS mounts

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Apr 7 22:59:14 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=89851

Martin Pitt <martin.pitt at ubuntu.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |NOTOURBUG

--- Comment #2 from Martin Pitt <martin.pitt at ubuntu.com> ---
This unescaping is already done by getmntent(). With an fstab entry like

  \\1.2.3.4\stuff /mnt/stuff cifs defaults,nofail 0 0

the me->mnt_fsname is \1.2.3.4\stuff. fstab uses \ as an escape character, so
I'm afraid this pretty much behaves as specified and you have to escape \ too
if you use them (i. e. use \\\\1.2.3.4...).

It's best to avoid those at all and use forward slashes for CIFS mounts.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20150408/c8526718/attachment.html>


More information about the systemd-bugs mailing list