Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permissions incorrectly treat \\?\ paths as distinct #18597

Open
wojpawlik opened this issue Apr 5, 2023 · 1 comment
Open

Permissions incorrectly treat \\?\ paths as distinct #18597

wojpawlik opened this issue Apr 5, 2023 · 1 comment
Labels
bug Something isn't working correctly permissions related to --allow-* flags

Comments

@wojpawlik
Copy link

This can be easily seen on Windows by running

> deno repl --allow-read=.
Deno 1.32.3
exit using ctrl+d, ctrl+c, or close()
> // lists current directory; no permission prompt
> Array.from(Deno.readDirSync(Deno.cwd()))
[]
>
> // lists the same directory; unexpected permission prompt
> Array.from(Deno.readDirSync('\\\\?\\' + Deno.cwd()))
✅ Granted read access to "\\?\C:\Users\Student\Empty".
[]

It becomes a problem (fromdeno/deno2node#39) right here:

Deno.chmod(pathModule.toNamespacedPath(path), mode).catch((error) => {

@aapoalas aapoalas added bug Something isn't working correctly permissions related to --allow-* flags labels Apr 15, 2023
@ghost
Copy link

ghost commented Jun 8, 2023

This seems to be a none issue in 1.33.3 on Windows 11 with the replication steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly permissions related to --allow-* flags
Projects
None yet
Development

No branches or pull requests

2 participants