Skip to content

Commit 46ce08e

Browse files
committed
Fix AIX build
1 parent 0b20963 commit 46ce08e

File tree

1 file changed

+1
-1
lines changed
  • library/std/src/sys/pal/unix

1 file changed

+1
-1
lines changed

library/std/src/sys/pal/unix/os.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ pub fn current_exe() -> io::Result<PathBuf> {
282282
return getcwd().map(|cwd| cwd.join(path))?.canonicalize();
283283
}
284284
// Search PATH to infer current_exe.
285-
if let Some(p) = getenv(OsStr::from_bytes("PATH".as_bytes())) {
285+
if let Some(p) = env::var_os(OsStr::from_bytes("PATH".as_bytes())) {
286286
for search_path in split_paths(&p) {
287287
let pb = search_path.join(&path);
288288
if pb.is_file()

0 commit comments

Comments
 (0)