summaryrefslogtreecommitdiff
path: root/sysutils/nix/files/patch-src_libutil_current-process.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/nix/files/patch-src_libutil_current-process.cc')
-rw-r--r--sysutils/nix/files/patch-src_libutil_current-process.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/sysutils/nix/files/patch-src_libutil_current-process.cc b/sysutils/nix/files/patch-src_libutil_current-process.cc
new file mode 100644
index 000000000000..a8beca7dfbbb
--- /dev/null
+++ b/sysutils/nix/files/patch-src_libutil_current-process.cc
@@ -0,0 +1,14 @@
+--- src/libutil/current-process.cc.orig 2025-09-13 18:20:31 UTC
++++ src/libutil/current-process.cc
+@@ -134,6 +134,11 @@ std::optional<Path> getSelfExe()
+ return std::nullopt;
+ }
+
++ // error: input string '/usr/ports/sysutils/nix/work/nix-2.31.1/_build/src/nix/nix␀' cannot be represented
++ // as Nix string because it contains null bytes
++ // So: pop the '\0' character in the string
++ path.pop_back();
++
+ return Path(path.begin(), path.end());
+ #else
+ return std::nullopt;