diff options
author | Karel Zak | 2012-09-21 17:15:07 +0200 |
---|---|---|
committer | Karel Zak | 2012-09-21 17:15:07 +0200 |
commit | 9af2433419bd6f484f6c6d7c3ab6d679d769dae7 (patch) | |
tree | 7f765371ae927dbb02add275c53cbcaace22c5b4 /libmount/src/context_umount.c | |
parent | mkswap: wipe old signature if there is no part table by default (diff) | |
download | kernel-qcow2-util-linux-9af2433419bd6f484f6c6d7c3ab6d679d769dae7.tar.gz kernel-qcow2-util-linux-9af2433419bd6f484f6c6d7c3ab6d679d769dae7.tar.xz kernel-qcow2-util-linux-9af2433419bd6f484f6c6d7c3ab6d679d769dae7.zip |
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>
Diffstat (limited to 'libmount/src/context_umount.c')
-rw-r--r-- | libmount/src/context_umount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmount/src/context_umount.c b/libmount/src/context_umount.c index 36ed435cf..17ec1f0a4 100644 --- a/libmount/src/context_umount.c +++ b/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); |