[PATCH] Cygwin: /proc//mount*: escape strings.

2024-06-04 Thread Jeremy Drake via Cygwin-patches
In order for these formats to be machine-parseable, characters used as delimiters must be escaped. Linux escapes space, newline, backslash, and hash (because code that parses mounts/mtab and fstab would handle comments) using octal escapes. Replicate that behavior here. Addresses: https://cygwin

[PATCH v2] Cygwin: /proc//mount*: escape strings.

2024-06-04 Thread Jeremy Drake via Cygwin-patches
In order for these formats to be machine-parseable, characters used as delimiters must be escaped. Linux escapes space, tab, newline, backslash, and hash (because code that parses mounts/mtab and fstab would handle comments) using octal escapes. Replicate that behavior here. Addresses: https://c