]> git.proxmox.com Git - wasi-libc.git/commitdiff
Fix unintended recursion in __wasilibc_register_preopened_fd. (#133)
authorDan Gohman <sunfish@mozilla.com>
Fri, 8 Nov 2019 19:44:18 +0000 (11:44 -0800)
committerGitHub <noreply@github.com>
Fri, 8 Nov 2019 19:44:18 +0000 (11:44 -0800)
libc-bottom-half/libpreopen/libpreopen.c

index 7ea2542f5f06c09a5633797d9b18319979866912..8b0f0aa63eac44d7b99f497d95f9250908c35440 100644 (file)
@@ -498,7 +498,7 @@ int
 __wasilibc_register_preopened_fd(int fd, const char *path)
 {
     const char *name = strdup(path);
-    return name == NULL ? -1 : __wasilibc_register_preopened_fd(fd, name);
+    return name == NULL ? -1 : internal_register_preopened_fd(fd, name);
 }
 
 int