Change PATH separator to double colon
This commit is contained in:
@@ -356,12 +356,8 @@ pub unsafe extern "C" fn fexecve(
|
||||
.or_minus_one_errno()
|
||||
}
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
const PATH_SEPARATOR: u8 = b':';
|
||||
|
||||
#[cfg(target_os = "redox")]
|
||||
const PATH_SEPARATOR: u8 = b';';
|
||||
|
||||
/// See <https://pubs.opengroup.org/onlinepubs/9799919799/functions/exec.html>.
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn execvp(file: *const c_char, argv: *const *mut c_char) -> c_int {
|
||||
|
||||
@@ -18,10 +18,6 @@ use crate::{
|
||||
start::Stack,
|
||||
};
|
||||
|
||||
#[cfg(target_os = "redox")]
|
||||
pub const PATH_SEP: char = ';';
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
pub const PATH_SEP: char = ':';
|
||||
|
||||
mod access;
|
||||
|
||||
Reference in New Issue
Block a user