Commit 5c59d5d
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>1 parent 66408f1 commit 5c59d5d
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1992 | 1992 | | |
1993 | 1993 | | |
1994 | 1994 | | |
1995 | | - | |
| 1995 | + | |
1996 | 1996 | | |
1997 | 1997 | | |
1998 | 1998 | | |
| |||
0 commit comments