Summary: | fstab-generator interprets backslashes in CIFS mounts | ||
---|---|---|---|
Product: | systemd | Reporter: | Artyom Aleksyuk <artyom.h31> |
Component: | general | Assignee: | systemd-bugs |
Status: | RESOLVED NOTOURBUG | QA Contact: | systemd-bugs |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Artyom Aleksyuk
2015-03-31 17:56:15 UTC
Note that fstab should contain forward slashes for cifs, e. g. //192.168.1.110/ExtHDD in your case. Where did you see the backslashes documented? This documentation should be fixed. Or was that added by some tool? Which one? Nevertheless, this shouldn't be unescaped by the fstab generator. 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. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.