Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

libmount: user-mounted loopback fs cannot be unmounted by user

Addresses: https://bugs.archlinux.org/task/31624
Signed-off-by: Karel Zak <kzak@redhat.com>
  • Loading branch information...
commit a411bef7850b79fdd46588a1f520926ad4d17351 1 parent 21269ae
@karelzak authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  libmount/src/context_umount.c
View
2  libmount/src/context_umount.c
@@ -150,7 +150,7 @@ static int is_associated_fs(const char *devname, struct libmnt_fs *fs)
int flags = 0;
/* check if it begins with /dev/loop */
- if (strncmp(devname, _PATH_DEV_LOOP, sizeof(_PATH_DEV_LOOP)))
+ if (strncmp(devname, _PATH_DEV_LOOP, sizeof(_PATH_DEV_LOOP) - 1))
return 0;
src = mnt_fs_get_srcpath(fs);
Please sign in to comment.
Something went wrong with that request. Please try again.