Bug 191611
Summary: | getmntent(3): does not state /etc/fstab quoting rules correctly | ||
---|---|---|---|
Product: | Documentation | Reporter: | anders |
Component: | man-pages | Assignee: | documentation_man-pages (documentation_man-pages) |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | CC: | mtk.manpages |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | Subsystem: | ||
Regression: | No | Bisected commit-id: |
Description
anders
2016-12-31 08:25:29 UTC
Thanks. I made the text: Since fields in the mtab and fstab files are separated by white‐ space, octal escapes are used to represent the characters space (\040), tab (\011), newline (\012), and backslash (\\) in those files when they occur in one of the four strings in a mntent structure. The routines addmntent() and getmntent() will convert from string representation to escaped representation and back. When converting from escaped representation, the sequence \134 is also converted to a backslash. I think this fixes your issue, so I'm closing this bug. Please reopen if you see something still to fix. |