]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/mount/mount-tool.c
mount: change find_loop_device() error code when no loop device is found to ENXIO
authorLennart Poettering <lennart@poettering.net>
Mon, 10 Jul 2017 19:41:14 +0000 (21:41 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 10 Jul 2017 19:41:14 +0000 (21:41 +0200)
commitaa46fa6420c641552eda6cde5de712cbebbc8dc6
tree9ed1faa21424d99c646249593d58e284c3db76b3
parenta53dceb709f39ddbc25bfb910525c7d77c7a7dcf
mount: change find_loop_device() error code when no loop device is found to ENXIO

ENOENT is a bit too likely to be returned for various reasons, for
example if /sys or /proc are not mounted and hence the files we need not
around. Hence, let's use ENXIO instead, which is equally fitting for the
purpose but has the benefit that the underlying calls won't generate
this error on their own, hence any ambiguity is removed.
src/mount/mount-tool.c