Skip to content

Commit 31c2624

Browse files
feat(syscall/fs): cleanup rmdir
Signed-off-by: Anhad Singh <[email protected]>
1 parent 9105725 commit 31c2624

File tree

1 file changed

+1
-3
lines changed
  • src/aero_kernel/src/syscall

1 file changed

+1
-3
lines changed

src/aero_kernel/src/syscall/fs.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,7 @@ pub fn mkdirat(dfd: usize, path: &Path) -> Result<usize, SyscallError> {
246246
}
247247

248248
#[syscall]
249-
pub fn rmdir(path: &str) -> Result<usize, SyscallError> {
250-
let path = Path::new(path);
251-
249+
pub fn rmdir(path: &Path) -> Result<usize, SyscallError> {
252250
let (_, child) = path.parent_and_basename();
253251
let inode = fs::lookup_path(path)?;
254252

0 commit comments

Comments
 (0)