| 1 |
Descriptionscip-debian debian rust-libmount 0.1.15-8 rust-libmount/patches/`tolerate-no-root-mount.diff`#Description.: tolerate lack of / mount. |
| 2 |
Some chroot environments may not have an accessible root mount, |
| 3 |
tolerate this case in the testsuite. |
| 4 |
Authorscip-debian debian rust-libmount 0.1.15-8 rust-libmount/patches/`tolerate-no-root-mount.diff`#Author.: Peter Michael Green <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 5 |
|
| 6 |
--- rust-libmount-0.1.15.orig/src/remount.rsscip-debian debian rust-libmount 0.1.15-8 rust-libmount/upstream/`rust-libmount-0.1.15.orig/src/remount.rs`: |
| 7 |
+++ rust-libmount-0.1.15/src/remount.rsscip-debian debian rust-libmount 0.1.15-8 rust-libmount/upstream/`rust-libmount-0.1.15/src/remount.rs`: |
| 8 |
@@ -375,7 +375,12 @@ mod test { |
| 9 |
|
| 10 |
#[test] |
| 11 |
fn test_get_mountpoint_flags() { |
| 12 |
|
| 13 |
+ let res = get_mountpoint_flags(Path::new("/")); |
| 14 |
+ match res { |
| 15 |
+ Ok(v) => {}, |
| 16 |
+ Err(RemountError::UnknownMountPoint(p)) => assert_eq!(p, Path::new("/")), // in some chroot environments mount point information on the / mountpoint may be unavailable. |
| 17 |
+ Err(e) => panic!("{}",e) |
| 18 |
+ } |
| 19 |
} |
| 20 |
|
| 21 |
#[test] |