Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mount_point doesn't work as expected with special characters #388

Open
andyneff opened this issue Oct 12, 2021 · 0 comments
Open

mount_point doesn't work as expected with special characters #388

andyneff opened this issue Oct 12, 2021 · 0 comments

Comments

@andyneff
Copy link
Member

In linux, it's totally possible to have a mount point with tabs and newlines in it, although highly unlikely.

While the df and mount command do work with these as inputs, the output has them replaced with ? instead, making the commands mount_point and mount_type not work as expected.

The only solution, as I see it, is to parse /proc/mounts and use that output instead, which is in octal (at least on fedora 33)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant