projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2c1eb4
)
Get root before unmounting things on Linux.
author
Carl Hetherington
<cth@carlh.net>
Wed, 21 Apr 2021 23:39:47 +0000
(
01:39
+0200)
committer
Carl Hetherington
<cth@carlh.net>
Thu, 22 Apr 2021 13:42:11 +0000
(15:42 +0200)
src/lib/cross_linux.cc
patch
|
blob
|
history
diff --git
a/src/lib/cross_linux.cc
b/src/lib/cross_linux.cc
index 8ce72d6fce3f38798dab4f10a25bc06d458b2d68..510bce8c3df4e141ed3c0e8c113c5a8e0a4d7719 100644
(file)
--- 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) {