mirror of
https://github.com/uutils/coreutils
synced 2024-11-16 01:38:04 +00:00
Merge pull request #923 from king6cong/tail-dir-fix
skip directory tail
This commit is contained in:
commit
67fcfb02ea
1 changed files with 3 additions and 0 deletions
|
@ -165,6 +165,9 @@ pub fn uumain(args: Vec<String>) -> i32 {
|
|||
first_header = false;
|
||||
|
||||
let path = Path::new(filename);
|
||||
if path.is_dir() {
|
||||
continue;
|
||||
}
|
||||
let file = File::open(&path).unwrap();
|
||||
bounded_tail(&file, &settings);
|
||||
|
||||
|
|
Loading…
Reference in a new issue