1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-16 05:51:05 +01:00

Merge pull request #14617 from vinayakankugoyal/path

Update profiles to use `std::filesystem::path`
This commit is contained in:
John Ericson 2025-11-24 19:31:25 +00:00 committed by GitHub
commit 0c786f3a3c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 154 additions and 103 deletions

View file

@ -124,7 +124,7 @@ std::optional<Path> getSelfExe()
{
static auto cached = []() -> std::optional<Path> {
#if defined(__linux__) || defined(__GNU__)
return readLink("/proc/self/exe");
return readLink(std::filesystem::path{"/proc/self/exe"});
#elif defined(__APPLE__)
char buf[1024];
uint32_t size = sizeof(buf);