0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-21 21:03:16 -05:00
denoland-deno/runtime/permissions
Divy Srivastava 925be251d8
fix(ext/node): homedir() getpwuid/SHGetKnownFolderPath fallback (#23841)
**Unix**: Returns the value of the HOME environment variable if it is
set even if it is an empty string. Otherwise, it tries to determine the
home directory by invoking the
[getpwuid_r](https://linux.die.net/man/3/getpwuid_r) function with the
UID of the current user.

**Windows**: Returns the value of the USERPROFILE environment variable
if it is set and it is not an empty string. Otherwise, it tries to
determine the home directory by invoking the
[SHGetKnownFolderPath](https://learn.microsoft.com/en-us/windows/win32/api/shlobj_core/nf-shlobj_core-shgetknownfolderpath)
function with
[FOLDERID_Profile](https://learn.microsoft.com/en-us/windows/win32/shell/knownfolderid).

Fixes https://github.com/denoland/deno/issues/23824
2024-05-17 00:41:23 +02:00
..
Cargo.toml chore: cleanup unused dependencies (#23787) 2024-05-17 00:41:19 +02:00
lib.rs fix(ext/node): homedir() getpwuid/SHGetKnownFolderPath fallback (#23841) 2024-05-17 00:41:23 +02:00
prompter.rs chore: enable clippy::print_stdout and clippy::print_stderr (#23732) 2024-05-10 15:00:08 -04:00
README.md refactor: add deno_permissions crate (#22236) 2024-03-12 10:42:26 -07:00