aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-base.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mds-base.c')
-rw-r--r--src/mds-base.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mds-base.c b/src/mds-base.c
index 1bae36b..95eb4e0 100644
--- a/src/mds-base.c
+++ b/src/mds-base.c
@@ -453,6 +453,11 @@ int main(int argc_, char** argv_)
fail_if (drop_privileges());
+ /* Use /proc/self/exe when re:exec-ing */
+ if (prepare_reexec())
+ xperror(*argv);
+
+
/* Sanity check the number of command line arguments. */
exit_if (argc > ARGC_LIMIT + LIBEXEC_ARGC_EXTRA_LIMIT,
eprint("that number of arguments is ridiculous, I will not allow it."););