diff options
author | NeilBrown <neilb@suse.de> | 2014-05-22 09:13:02 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2014-05-22 09:13:02 +0200 |
commit | 85945e1986837e1e34247a03c99039593fbceb8b (patch) | |
tree | 453d176c911ae229c7dc81b9cbc414187f3b54ee /policy.c | |
parent | mdcheck: new script to help with regular checks of md arrays. (diff) | |
download | mdadm-85945e1986837e1e34247a03c99039593fbceb8b.tar.xz mdadm-85945e1986837e1e34247a03c99039593fbceb8b.zip |
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 'policy.c')
-rw-r--r-- | policy.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -799,12 +799,12 @@ char *find_rule(struct rule *rule, char *rule_type) #define UDEV_RULE_FORMAT \ "ACTION==\"add\", SUBSYSTEM==\"block\", " \ "ENV{DEVTYPE}==\"%s\", ENV{ID_PATH}==\"%s\", " \ -"RUN+=\"/sbin/mdadm --incremental $env{DEVNAME}\"\n" +"RUN+=\"" BINDIR "/mdadm --incremental $env{DEVNAME}\"\n" #define UDEV_RULE_FORMAT_NOTYPE \ "ACTION==\"add\", SUBSYSTEM==\"block\", " \ "ENV{ID_PATH}==\"%s\", " \ -"RUN+=\"/sbin/mdadm --incremental $env{DEVNAME}\"\n" +"RUN+=\"" BINDIR "/mdadm --incremental $env{DEVNAME}\"\n" /* Write rule in the rule file. Use format from UDEV_RULE_FORMAT */ int write_rule(struct rule *rule, int fd, int force_part) |