summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2014-05-22 17:13:02 +1000
committerNeilBrown <neilb@suse.de>2014-05-22 17:13:02 +1000
commit85945e1986837e1e34247a03c99039593fbceb8b (patch)
tree453d176c911ae229c7dc81b9cbc414187f3b54ee /util.c
parentdf881f757b3d61e5dfc1a2b23436ab1cf5247157 (diff)
downloadmdadm-85945e1986837e1e34247a03c99039593fbceb8b.tar.gz
install: use BINDIR consistently to locate mdadm and mdmon
Every place where the paths for mdadm or mdmon is explicit, it should use the BINDIR setting, not "/sbin/". Reported-by: member graysky <graysky@archlinux.us> (https://bugs.archlinux.org/task/37330) Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index afb2bb1..7937eb6 100644
--- a/util.c
+++ b/util.c
@@ -1688,7 +1688,7 @@ int start_mdmon(char *devnm)
char pathbuf[1024];
char *paths[4] = {
pathbuf,
- "/sbin/mdmon",
+ BINDIR "/mdmon",
"./mdmon",
NULL
};