diff options
-rw-r--r-- | utils/mount/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/mount/utils.c b/utils/mount/utils.c index ede77a8..92662ed 100644 --- a/utils/mount/utils.c +++ b/utils/mount/utils.c @@ -130,7 +130,7 @@ int chk_mountpoint(const char *mount_point) mount_error(NULL, mount_point, ENOTDIR); return 1; } - if (access(mount_point, X_OK) < 0) { + if (getuid() != 0 && geteuid() != 0 && access(mount_point, X_OK) < 0) { mount_error(NULL, mount_point, errno); return 1; } |