commit 836121d089beff79891389448ee14af3de8c7915
parent 82ca453321d2fdae8230fd3abf2e834de5240f2e
Author: Jan Pobrislo <ccx@te2000.cz>
Date: Fri, 12 Dec 2025 02:13:16 +0000
Fix umount error handling
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lns-lockdown_main.c b/src/lns-lockdown_main.c
@@ -122,7 +122,7 @@ void pivot_and_umount(
if (sa_mtp.s[oldroot_len] != '/') {
strerr_dieinvalid(100, env_name);
}
- switch (umount(sa_mtp.s)) {
+ switch (umount(sa_mtp.s) ? errno : 0) {
case 0:
break;
case EBUSY: