edfd2c
From 301dc3d820434cbc65a7b5565d448e417293fcfb Mon Sep 17 00:00:00 2001
edfd2c
From: Karel Zak <kzak@redhat.com>
edfd2c
Date: Thu, 2 Feb 2023 14:47:04 +0100
edfd2c
Subject: libmount: use generic error message for EACCES on umount
edfd2c
edfd2c
Signed-off-by: Karel Zak <kzak@redhat.com>
edfd2c
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=2149394
edfd2c
---
edfd2c
 libmount/src/context_umount.c | 2 +-
edfd2c
 1 file changed, 1 insertion(+), 1 deletion(-)
edfd2c
edfd2c
diff --git a/libmount/src/context_umount.c b/libmount/src/context_umount.c
edfd2c
index 240ec3be6..23aaae395 100644
edfd2c
--- a/libmount/src/context_umount.c
edfd2c
+++ b/libmount/src/context_umount.c
edfd2c
@@ -1123,7 +1123,7 @@ int mnt_context_get_umount_excode(
edfd2c
 			snprintf(buf, bufsz, _("must be superuser to unmount"));
edfd2c
 			break;
edfd2c
 		case EACCES:
edfd2c
-			snprintf(buf, bufsz, _("block devices are not permitted on filesystem"));
edfd2c
+			snprintf(buf, bufsz, _("filesystem not accessible"));
edfd2c
 			break;
edfd2c
 		default:
edfd2c
 			return mnt_context_get_generic_excode(syserr, buf, bufsz,_("umount(2) system call failed: %m"));
edfd2c
-- 
edfd2c
2.39.1
edfd2c