From: Carl Hetherington Date: Wed, 21 Apr 2021 23:39:47 +0000 (+0200) Subject: Get root before unmounting things on Linux. X-Git-Tag: v2.15.141~42 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=615a8e6967b5b0b59cf191a104569f05a6f0227b Get root before unmounting things on Linux. --- diff --git a/src/lib/cross_linux.cc b/src/lib/cross_linux.cc index 8ce72d6fc..510bce8c3 100644 --- a/src/lib/cross_linux.cc +++ b/src/lib/cross_linux.cc @@ -356,6 +356,7 @@ bool Drive::unmount () { for (auto i: _mount_points) { + PrivilegeEscalator esc; int const r = umount(i.string().c_str()); LOG_DISK("Tried to unmount %1 and got %2 and %3", i.string(), r, errno); if (r == -1) {