mikros: Fix File::duplicate using wrong RPC proto/func
This commit is contained in:
parent
5ff8990346
commit
7bd76e861a
@ -361,7 +361,7 @@ pub fn seek(&self, pos: SeekFrom) -> io::Result<u64> {
|
||||
|
||||
pub fn duplicate(&self) -> io::Result<File> {
|
||||
let msg_data =
|
||||
&rpc::send_call(self.fs_pid, 4, 0, &postcard::to_allocvec(&self.fd).unwrap())
|
||||
&rpc::send_call(self.fs_pid, 1, 4, &postcard::to_allocvec(&self.fd).unwrap())
|
||||
.get_return();
|
||||
let dup_res: Option<u64> = postcard::from_bytes(msg_data).unwrap();
|
||||
let dup_data = dup_res.unwrap();
|
||||
|
Loading…
Reference in New Issue
Block a user