mikros: Fix File::duplicate using wrong RPC proto/func

This commit is contained in:
pjht 2024-09-22 13:56:19 -05:00
parent 5ff8990346
commit 7bd76e861a
Signed by: pjht
GPG Key ID: 7B5F6AFBEC7EE78E

View File

@ -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();