Commit 522d022e authored by unknown's avatar unknown

chroot() need chdir("/") afterwards to work

parent 6600e656
...@@ -886,6 +886,7 @@ static void set_root(const char *path) ...@@ -886,6 +886,7 @@ static void set_root(const char *path)
sql_perror("chroot"); sql_perror("chroot");
unireg_abort(1); unireg_abort(1);
} }
my_setwd("/", MYF(0));
#endif #endif
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment