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. ** Changed in: systemd (Ubuntu) Status: Triaged => Invalid ** Changed in: systemd (Ubuntu) Assignee: Martin Pitt (pitti) => (unassigned) -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1440395 Title: fstab-generator interprets backslashes in CIFS mounts To manage notifications about this bug go to: https://bugs.launchpad.net/systemd/+bug/1440395/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs