Skip to content

Commit 990dc19

Browse files
authored
Unrolled build for #142091
Rollup merge of #142091 - thaliaarchi:aix-getenv, r=workingjubilee Fix AIX build Fix #141543. `getenv` was moved out of this file to `sys::env::getenv` in #140143. Replace its usage with `std::env::var_os`, the publicly exposed version. This matches the other usages of the same function in this file.
2 parents d00435f + 46ce08e commit 990dc19

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)