Update to new struct version of FileWriteMode

This commit is contained in:
pjht 2024-11-17 21:52:05 -06:00
parent 76f29415fa
commit 8e64c5e449
Signed by: pjht
GPG Key ID: 7B5F6AFBEC7EE78E

View File

@ -102,10 +102,7 @@ impl file_rpc::Server for Serv {
}
fn dup(&self, fd: u64) -> Result<u64, Errno> {
let mut files = self.files.write();
let file = files[fd as usize].clone();
files.push(file);
Ok((files.len() - 1) as u64)
Ok(fd)
}
fn seek(&self, fd: u64, pos: file_rpc::SeekFrom) -> Result<u64, Errno> {