mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
stat: Remove hard-coded path for mount information
This commit is contained in:
+1
-1
@@ -475,7 +475,7 @@ impl Stater {
|
||||
// mount points aren't displayed when showing filesystem information
|
||||
None
|
||||
} else {
|
||||
let reader = BufReader::new(File::open(MOUNT_INFO).expect("Failed to read /etc/mtab"));
|
||||
let reader = BufReader::new(File::open(MOUNT_INFO).expect(&format!("Failed to read {}", MOUNT_INFO)));
|
||||
let mut mount_list = reader.lines()
|
||||
.filter_map(|s| s.ok())
|
||||
.filter_map(|line| line.split_whitespace().nth(1).map(|s| s.to_owned()))
|
||||
|
||||
Reference in New Issue
Block a user