]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Fix oddity where mdadm did not recognise a relative path
authorWol <anthony@youngman.org.uk>
Tue, 17 Jan 2017 17:47:05 +0000 (17:47 +0000)
committerJes Sorensen <Jes.Sorensen@gmail.com>
Sun, 29 Jan 2017 17:45:20 +0000 (12:45 -0500)
commitbb6f40bf9c458a13b1a780006733c034105e6d36
tree91a0573cc9e0fb6d89d724ccba916ddc0d314ccf
parent565cc99e341b3021ad26ff6da19a67d4e4abffde
Fix oddity where mdadm did not recognise a relative path

mdadm assumed that a pathname started with a "/", while an array
name didn't. This alters the logic so that if the first character
is not a "/" it tries to open an array, and if that fails it drops
through to the pathname code rather than terminating immediately
with an error.

Signed-off-by: Wol <anthony@youngman.org.uk>
Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com>
mdadm.c