mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 20:17:45 +00:00
Merge pull request #1094 from gbutler69/master
Added a check to see if the input file/path that ls is run on when us…
This commit is contained in:
commit
40fb0109a2
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ fn list(options: getopts::Matches) {
|
||||||
dir = true;
|
dir = true;
|
||||||
if options.opt_present("l") && !(options.opt_present("L")) {
|
if options.opt_present("l") && !(options.opt_present("L")) {
|
||||||
if let Ok(md) = p.symlink_metadata() {
|
if let Ok(md) = p.symlink_metadata() {
|
||||||
if md.file_type().is_symlink() {
|
if md.file_type().is_symlink() && !p.ends_with( "/" ) {
|
||||||
dir = false;
|
dir = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue