Electrux / ls_extended

ls with coloring and icons
BSD 3-Clause "New" or "Revised" License
201 stars 14 forks source link

Seg Fault on Cyclical SymLink #24

Closed DavidBittner closed 6 years ago

DavidBittner commented 6 years ago

Issue:

A symlink that points to itself causes a seg fault. I had this occur while changing some dotfile configurations.

Way to reproduce:

Create a file, create a symlink to that file, delete the file and rename the symlink to the name of the original file, keeping it in the original directory. This creates a symlink that points to itself.

Obviously this isn't really that big of a deal considering this shouldn't happen in the first place. But it should probably be accounted for so that you can be aware that you even have one in the first place.