Remove a couple of exceptions from the deprecated scheme syntax warning
This commit is contained in:
+1
-6
@@ -81,11 +81,6 @@ pub fn open(raw_path: UserSliceRo, flags: usize) -> Result<FileHandle> {
|
||||
&& !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<FileHandle> {
|
||||
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))?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user