OSDN Git Service

creator/find_file(): fix an incorrect error that gets raised.
authorPeter Jones <pjones@redhat.com>
Thu, 4 Aug 2016 17:49:57 +0000 (13:49 -0400)
committerPeter Jones <pjones@redhat.com>
Fri, 5 Aug 2016 13:33:05 +0000 (09:33 -0400)
commit086eeb1794c1a8e058d0c9296f2f3bb2144a2824
tree77aa403f67d40b3a6744bca4c64cb499a259a7ec
parent1dc6d576fa42ea794c2609f444d9aa86219fed5d
creator/find_file(): fix an incorrect error that gets raised.

In find_file(), when we're trying to find the device that matches a
mountpoint, we incorrectly raise an error when we find an entry that's
got a longer name than the one we want.  This is incorrect - it's a
special case of what Lans Zhang was fixing in 8eac2d51, in fact.

This case should just reject *that* entry, not set an error and end the
iteration.

Signed-off-by: Peter Jones <pjones@redhat.com>
src/creator.c