summary refs log tree commit diff
diff options
context:
space:
mode:
authoredef <edef@unfathomable.blue>2022-04-15 20:51:20 +0000
committeredef <edef@unfathomable.blue>2022-04-15 20:51:20 +0000
commitadf5bbf98ef392a92869cdb280766d8c9dc5e840 (patch)
treee09054b100a7df6bdbced101137632edf6108022
parent4d05978dcd9dd3796e99b666347757300808cda4 (diff)
downloadunf-legacy-adf5bbf98ef392a92869cdb280766d8c9dc5e840.tar.zst
ripple/fossil/mount: rm rmdir stub
rmdir should be rejected with EROFS. For some reason, the initial EROFS
pass missed this.

Change-Id: Ib8d7b21b42fcf52e696041aa0ba41be5ab20d326
-rw-r--r--ripple/fossil/src/bin/mount.rs10
1 files changed, 3 insertions, 7 deletions
diff --git a/ripple/fossil/src/bin/mount.rs b/ripple/fossil/src/bin/mount.rs
index 3a5dbce..601b594 100644
--- a/ripple/fossil/src/bin/mount.rs
+++ b/ripple/fossil/src/bin/mount.rs
@@ -223,15 +223,11 @@ impl fuser::Filesystem for Filesystem {
 	fn rmdir(
 		&mut self,
 		_req: &fuser::Request<'_>,
-		parent: u64,
-		name: &std::ffi::OsStr,
+		_parent: u64,
+		_name: &std::ffi::OsStr,
 		reply: fuser::ReplyEmpty,
 	) {
-		debug!(
-			"[Not Implemented] rmdir(parent: {:#x?}, name: {:?})",
-			parent, name,
-		);
-		reply.error(ENOSYS);
+		reply.error(EROFS);
 	}
 
 	fn symlink(