Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49131 Signed-off-by: Chip Davis cdavis@codeweavers.com --- dlls/ntdll/server.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/dlls/ntdll/server.c b/dlls/ntdll/server.c index 3f637ac6885..ac8e4695eff 100644 --- a/dlls/ntdll/server.c +++ b/dlls/ntdll/server.c @@ -1924,6 +1924,11 @@ void server_init_process(void) server_pid = -1; if (env_socket) { + struct stat st; + + if (stat( config_dir, &st ) == -1) fatal_perror( "stat %s", config_dir ); + server_dir = init_server_dir( st.st_dev, st.st_ino ); + fd_socket = atoi( env_socket ); if (fcntl( fd_socket, F_SETFD, FD_CLOEXEC ) == -1) fatal_perror( "Bad server socket %d", fd_socket );