Skip to content

Commit 0f996bb

Browse files
committed
fix(fsext): correct dummy filesystem list to match GNU behavior
- Keep 'rootfs' as dummy filesystem (suppressed by default, shown with -a) - Remove 'binfmt_misc' from dummy list (shown by default like GNU) This matches GNU coreutils behavior where rootfs is filtered out by default but binfmt_misc is shown. Fixes GNU test failures.
1 parent fd573a0 commit 0f996bb

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

src/uucore/src/lib/features/fsext.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -398,9 +398,7 @@ fn is_dummy_filesystem(fs_type: &str, mount_option: &str) -> bool {
398398
// for Irix 6.5
399399
| "ignore"
400400
// Linux initial root filesystem
401-
| "rootfs"
402-
// Binary format support pseudo-filesystem
403-
| "binfmt_misc" => true,
401+
| "rootfs" => true,
404402
_ => fs_type == "none"
405403
&& !mount_option.contains(MOUNT_OPT_BIND)
406404
}
@@ -1194,11 +1192,4 @@ mod tests {
11941192
);
11951193
}
11961194

1197-
#[test]
1198-
#[cfg(all(unix, not(target_os = "redox")))]
1199-
// spell-checker:ignore (word) binfmt
1200-
fn test_binfmt_misc_is_dummy() {
1201-
use super::is_dummy_filesystem;
1202-
assert!(is_dummy_filesystem("binfmt_misc", ""));
1203-
}
12041195
}

0 commit comments

Comments
 (0)