chiark / gitweb /
mount: propagate error codes correctly
authorDavid Herrmann <dh.herrmann@gmail.com>
Mon, 21 Sep 2015 17:59:07 +0000 (19:59 +0200)
committerSven Eden <yamakuzure@gmx.net>
Wed, 29 Mar 2017 08:45:10 +0000 (10:45 +0200)
commit1fb205729747c2a77848d2ddf18c4ed720dc319c
tree9970906649dad8a0352e84ceac67ab7504e225b1
parent3c5cadf3384cbc335697092e1fb6faba9c90b6b0
mount: propagate error codes correctly

Make sure to propagate error codes from mount-loops correctly. Right now,
we return the return-code of the first mount that did _something_. This is
not what we want. Make sure we return an error if _any_ mount fails (and
then make sure to return the first error to not hide proper errors due to
consequential errors like -ENOTDIR).

Reported by cee1 <fykcee1@gmail.com>.
src/core/mount-setup.c