Commit 0b171c2
committed
mountinfo: also unescape fstype and source
Just noticed it while reading the kernel source code (function
show_mountinfo() in fs/proc_namespace.c; see also: show_type(),
mangle()) that the first two fields after the `-` separator are also
escaped.
While I haven't seen it in real life, it's better we unescape them.
No field-specific tests were added, and unescape() is tested by its own
test case.
Signed-off-by: Kir Kolyshkin <[email protected]>1 parent 504ee4b commit 0b171c2
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
80 | 86 | | |
81 | 87 | | |
82 | 88 | | |
| |||
0 commit comments