diff options
Diffstat (limited to 'src/remount-fs/remount-fs.c')
-rw-r--r-- | src/remount-fs/remount-fs.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/remount-fs/remount-fs.c b/src/remount-fs/remount-fs.c index 57b47021e4..e701fc9fae 100644 --- a/src/remount-fs/remount-fs.c +++ b/src/remount-fs/remount-fs.c @@ -20,7 +20,6 @@ ***/ #include <unistd.h> -#include <fcntl.h> #include <errno.h> #include <string.h> #include <sys/stat.h> @@ -30,7 +29,7 @@ #include "log.h" #include "util.h" #include "path-util.h" -#include "set.h" +#include "signal-util.h" #include "mount-setup.h" #include "exit-status.h" @@ -96,15 +95,15 @@ int main(int argc, char *argv[]) { const char *arguments[5]; /* Child */ - arguments[0] = "/bin/mount"; + arguments[0] = MOUNT_PATH; arguments[1] = me->mnt_dir; arguments[2] = "-o"; arguments[3] = "remount"; arguments[4] = NULL; - execv("/bin/mount", (char **) arguments); + execv(MOUNT_PATH, (char **) arguments); - log_error_errno(errno, "Failed to execute /bin/mount: %m"); + log_error_errno(errno, "Failed to execute " MOUNT_PATH ": %m"); _exit(EXIT_FAILURE); } @@ -144,9 +143,9 @@ int main(int argc, char *argv[]) { if (s) { if (!is_clean_exit(si.si_code, si.si_status, NULL)) { if (si.si_code == CLD_EXITED) - log_error("/bin/mount for %s exited with exit status %i.", s, si.si_status); + log_error(MOUNT_PATH " for %s exited with exit status %i.", s, si.si_status); else - log_error("/bin/mount for %s terminated by signal %s.", s, signal_to_string(si.si_status)); + log_error(MOUNT_PATH " for %s terminated by signal %s.", s, signal_to_string(si.si_status)); ret = EXIT_FAILURE; } |