Commit 95d2fd4
libmultipath: fix error return in snprint_devices()
If an error occurs, snprint_devices() should return a negative
error code, not 1.
Fixes: d041258 ("libmultipath: snprint_devices(): use udev_enumerate")
Suggested-by: Benjamin Marzinski <bmarzins@redhat.com>
Signed-off-by: Martin Wilck <mwilck@suse.com>
(cherry picked from commit 5c59d5d)1 parent ffdbeb6 commit 95d2fd4
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1989 | 1989 | | |
1990 | 1990 | | |
1991 | 1991 | | |
1992 | | - | |
| 1992 | + | |
1993 | 1993 | | |
1994 | 1994 | | |
1995 | 1995 | | |
| |||
0 commit comments