From 046503de88e0a10a7343d57aa66a25db7aaf4d7e Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Wed, 16 Aug 2017 08:28:46 -0600 Subject: [PATCH] unbreak handling of symlinks on Windows A mistake in the rktio conversion causes a crash if certain functions, such as `directory-exists?`, are used before certain other functions, such as `resolve-path`. Thanks to Alex Harsanyi for the report. --- racket/src/rktio/rktio_fs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/racket/src/rktio/rktio_fs.c b/racket/src/rktio/rktio_fs.c index 0b4a234284..0684d58a94 100644 --- a/racket/src/rktio/rktio_fs.c +++ b/racket/src/rktio/rktio_fs.c @@ -444,6 +444,7 @@ static int UNC_stat(rktio_t *rktio, const char *dirname, int *flags, int *isdir, } do { + init_procs(); if (dest) free(dest); dest_len = len + 1; dest = malloc(dest_len);