Commit f54b1163 authored by unknown's avatar unknown

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

parent cd664698
...@@ -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