Skip to content

Conversation

@arsnyder16
Copy link
Contributor

@arsnyder16 arsnyder16 commented Feb 1, 2023

Fixes #18587

As mentioned in the bug this manifests in the realpath function. How i stumbled on it was the use of std::filesystem::canonical, std::filesystem::weakly_canonical which uses realpath.

		ssize_t k = readlink(output, stack, p);
		if (k==p) goto toolong;
		if (!k) {
			errno = ENOENT;
			return 0;
		}
		if (k<0) {
                  if (errno != EINVAL) return 0;

if (errno != EINVAL) return 0;

@sbc100 sbc100 enabled auto-merge (squash) February 1, 2023 17:08
@sbc100 sbc100 merged commit 6ac4b2a into emscripten-core:main Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

preload-file + LZ4 causes EPERM errors with readlink

2 participants