summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util.c b/util.c
index 491a1075..c12fb211 100644
--- a/util.c
+++ b/util.c
@@ -1691,7 +1691,7 @@ int start_mdmon(char *devnm)
char *paths[4] = {
pathbuf,
"/sbin/mdmon",
- "mdmon",
+ "./mdmon",
NULL
};
@@ -1759,7 +1759,7 @@ int start_mdmon(char *devnm)
for (i = 0; paths[i]; i++)
if (paths[i][0]) {
- execl(paths[i], "mdmon",
+ execl(paths[i], paths[i],
devnm, NULL);
}
exit(1);