diff options
| author | Karel Zak <kzak@redhat.com> | 2012-12-19 12:40:19 +0100 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2012-12-19 12:40:19 +0100 |
| commit | 06f588f7d108d9ba2ae86b037c244acf18d00d32 (patch) | |
| tree | 5f04127d3f554a33676d696b6a9786347882c34b /lib/loopdev.c | |
| parent | d80081566e04c54992db86e649185c40e1d8a279 (diff) | |
| download | util-linux-06f588f7d108d9ba2ae86b037c244acf18d00d32.tar.gz | |
lib/loopdev: fix loopdev_find_by_backing_file()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'lib/loopdev.c')
| -rw-r--r-- | lib/loopdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/loopdev.c b/lib/loopdev.c index a404e6644b..c29cb85c51 100644 --- a/lib/loopdev.c +++ b/lib/loopdev.c @@ -1353,7 +1353,7 @@ char *loopdev_find_by_backing_file(const char *filename, uint64_t offset, int fl if (loopcxt_init(&lc, 0)) return NULL; - if (loopcxt_find_by_backing_file(&lc, filename, offset, flags)) + if (loopcxt_find_by_backing_file(&lc, filename, offset, flags) == 0) res = loopcxt_strdup_device(&lc); loopcxt_deinit(&lc); |
