]> git.ipfire.org Git - thirdparty/util-linux.git/commit
losetup: fix loop device name usage
authorKarel Zak <kzak@redhat.com>
Mon, 5 Aug 2013 14:03:15 +0000 (16:03 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 5 Aug 2013 14:08:34 +0000 (16:08 +0200)
commit21ce3f3a4ec1a7cf97379aa4157cecc657cb814e
tree932a42350976bf7403d558a531a274877522b8f5
parent68c41a5f5f2649f49d6eb2aecba7fb248b57e91e
losetup: fix loop device name usage

The code is not paranoid enough, loopcxt_set_device() only set the
device name to loopdev struct, but it does not check if the device
really exists.

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/losetup.c