autofs-5.1.8 - fix handling of incorrect return from umount_ent()

Commit 0210535df4b ("autofs-5.1.0 - gaurd against incorrect umount
return") guards against umount_ent() returning a fail when the mount
has actually been umounted.

But we also see umount_ent() return success when in fact the mount has
not been umounted leading to incorrect handling of automounts.

So checking the return of umount_ent() isn't always giving the correct
result in more than just one case, consequently we should ignore the
result from the spawned umount(8) and check if the mount has in fact
been umounted.

Signed-off-by: Ian Kent <raven@themaw.net>


3 files changed