fix uucore/fsext/MountInfo::new don't support spaces/backslashs/tabs in mount_dir#5679
fix uucore/fsext/MountInfo::new don't support spaces/backslashs/tabs in mount_dir#5679Yykz wants to merge 5 commits intouutils:mainfrom
Conversation
|
GNU testsuite comparison: |
|
Cool! Do you know whether these are the only characters that are escaped? And should we be unescaping the other strings as well? |
I noticed first about space by using df, then I find on linux manual page that just mentioning space and tabs but it was quite logic that backslash cannot be both part of the replacement and not be replaced. |
|
GNU testsuite comparison: |
|
needs rebasing :) |
This PR addresses an issue where the method fails to consider spaces, backslashes, and tabs in a
mount_dirfield, as they are replaced by\040,\134,\011, respectively.This issue was observed for both
/etc/mtaband/proc/self/mountinfo.Additionally, it introduces a new test to verify this correction.
It addresses #5678