From 522d022e1de97eebd97dcfcc0370e6116b9feb15 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 28 Nov 2002 19:38:01 +0100 Subject: [PATCH] chroot() need chdir("/") afterwards to work --- sql/mysqld.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/sql/mysqld.cc b/sql/mysqld.cc index 71b832f24f4..73c44b49709 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -886,6 +886,7 @@ static void set_root(const char *path) sql_perror("chroot"); unireg_abort(1); } + my_setwd("/", MYF(0)); #endif }