Skip to content

Commit

Permalink
libmount: user-mounted loopback fs cannot be unmounted by user
Browse files Browse the repository at this point in the history
Addresses: https://bugs.archlinux.org/task/31624
Signed-off-by: Karel Zak <kzak@redhat.com>
  • Loading branch information
karelzak committed Sep 21, 2012
1 parent c1f1b30 commit 9af2433
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmount/src/context_umount.c
Expand Up @@ -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);
Expand Down

0 comments on commit 9af2433

Please sign in to comment.