Skip to content

\r in path confuses mount units #12018

@zyga

Description

@zyga

systemd version the issue has been seen with

239

Used distribution

ubuntu 18.10

Expected behaviour you didn't see

systems should have parsed the mount directory as /tmp/foo\rbar

Unexpected behaviour you saw

systemd apparently parsed mountinfo data as /tmp/foo, representing inexistent mount point.

Steps to reproduce the problem

mkdir "$(echo -e foo\\rbar)"
sudo mount -t tmpfs tmpfs foo^Mbar/
systemctl list-units | grep tmp-foo.mount

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions