about summary refs log tree commit diff
diff options
context:
space:
mode:
authorThalia Archibald <thalia@archibald.dev>2025-06-05 10:29:50 -0700
committerThalia Archibald <thalia@archibald.dev>2025-06-05 10:29:50 -0700
commit46ce08ef061b74d7609a4c069ddbc5f4fe8d398c (patch)
tree0a8efab10e3a1e3260ab6ab06f101f401fd2cbc7
parent0b20963d6b892651937fb3600e15ca285bdcfefd (diff)
downloadrust-46ce08ef061b74d7609a4c069ddbc5f4fe8d398c.tar.gz
rust-46ce08ef061b74d7609a4c069ddbc5f4fe8d398c.zip
Fix AIX build
-rw-r--r--library/std/src/sys/pal/unix/os.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/pal/unix/os.rs b/library/std/src/sys/pal/unix/os.rs
index 48609030aed..850bdfdf5b5 100644
--- a/library/std/src/sys/pal/unix/os.rs
+++ b/library/std/src/sys/pal/unix/os.rs
@@ -282,7 +282,7 @@ pub fn current_exe() -> io::Result<PathBuf> {
         return getcwd().map(|cwd| cwd.join(path))?.canonicalize();
     }
     // Search PATH to infer current_exe.
-    if let Some(p) = getenv(OsStr::from_bytes("PATH".as_bytes())) {
+    if let Some(p) = env::var_os(OsStr::from_bytes("PATH".as_bytes())) {
         for search_path in split_paths(&p) {
             let pb = search_path.join(&path);
             if pb.is_file()