From 0876bed222560a935b5c3a24dedaf5951a218e01 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Mon, 19 Aug 2024 19:01:11 +0200 Subject: [PATCH] Remove a couple of exceptions from the deprecated scheme syntax warning --- src/syscall/fs.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/syscall/fs.rs b/src/syscall/fs.rs index aa00fdcf2a..aabd165e0a 100644 --- a/src/syscall/fs.rs +++ b/src/syscall/fs.rs @@ -81,11 +81,6 @@ pub fn open(raw_path: UserSliceRo, flags: usize) -> Result { && !path_buf.starts_with(':') && path_buf != "rand:" // FIXME Remove exception at next rustc update && !path_buf.starts_with("thisproc:") // bootstrap needs redox-rt update - && path_buf != "memory:" // ramfs, escalated - && path_buf != "event:" // ipcd, orbterm, old redox-event in getty - && path_buf != "file:/etc/shadow" // login, orblogin - && path_buf != "file:/etc/passwd" // login, orblogin - && path_buf != "time:4" // launcher && !path_buf.starts_with("display") && !path_buf.starts_with("orbital:") { @@ -95,7 +90,7 @@ pub fn open(raw_path: UserSliceRo, flags: usize) -> Result { context::current().read().name ); } - + let path = RedoxPath::from_absolute(&path_buf).ok_or(Error::new(EINVAL))?; let (scheme_name, reference) = path.as_parts().ok_or(Error::new(EINVAL))?;