summaryrefslogtreecommitdiffstats
path: root/tests/ts
diff options
context:
space:
mode:
authorAlban Crequy2018-06-22 13:54:25 +0200
committerKarel Zak2018-07-10 13:48:38 +0200
commit18a52a5094f820b5da013daf5972eb8e65be9680 (patch)
treef00518c084e8e7dc0a30b222e211ad1cb4d99c52 /tests/ts
parentlsblk: add PATH column (diff)
downloadkernel-qcow2-util-linux-18a52a5094f820b5da013daf5972eb8e65be9680.tar.gz
kernel-qcow2-util-linux-18a52a5094f820b5da013daf5972eb8e65be9680.tar.xz
kernel-qcow2-util-linux-18a52a5094f820b5da013daf5972eb8e65be9680.zip
libmount: (mountinfo) parse empty strings in source
The source of a mount in /proc/self/mountinfo can unfortunately be an empty string. Before this patch, 'mount' and 'mountpoint' fail as following: $ sudo mount -t tmpfs "" /tmp/bb $ mount mount: /proc/self/mountinfo: parse error at line 64 -- ignored $ mountpoint /tmp/bb /tmp/bb is not a mountpoint This patch fixes the parsing. It is unfortunately more complex because sscanf() does not handle fields with empty strings easily. Other projects have their own parser for mountinfo and have similar issues. I know of runc and runtime-tools (I'll send a patch for those two) but there are probably others. Signed-off-by: Alban Crequy <alban@kinvolk.io>
Diffstat (limited to 'tests/ts')
0 files changed, 0 insertions, 0 deletions