Project

General

Profile

Bug #19378 » windows-no-realpath-require.patch

test to avoid repeated syscalls - aidog (Andi Idogawa), 01/30/2023 03:10 AM

View differences:

forkDstPrefix/file.c
else {
struct stat sbuf;
int ret;
ret = lstat_without_gvl(RSTRING_PTR(testpath), &sbuf);
ret = 0;
if (ret == -1) {
int e = errno;
if (e == ENOENT && !NIL_P(fallback)) {
......
}
}
#ifdef HAVE_READLINK
if (S_ISLNK(sbuf.st_mode)) {
if (false) {
VALUE link;
VALUE link_orig = Qnil;
const char *link_prefix, *link_names;
(1-1/2)