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

uucore::fsext: Fix mountinfo parsing w/ multiple optional fields #2778

Merged
merged 1 commit into from
Dec 22, 2021

Commits on Dec 20, 2021

  1. uucore::fsext: Fix mountinfo parsing w/ multiple optional fields

    proc(5) mentions the following for the fields section and hyphen:
    
    > (7)  optional fields: zero or more fields of the form "tag[:value]";
    > see below.
    > (8)  separator: the end of the optional fields is marked by a single
    > hyphen.
    
    IOW, there may actually be multiple optional fields, not just one, in
    which case the previously hardcoded indexes for the filesystem type and
    device name are now incorrect. Now, the filesystem type and device name
    are parsed relative to the hypen's location, ensuring that they will be
    correct regardless of the number of optional fields.
    
    Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com>
    refi64 committed Dec 20, 2021
    Configuration menu
    Copy the full SHA
    23c0734 View commit details
    Browse the repository at this point in the history