ls --color hangs for directories linked from network
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
coreutils (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
Binary package hint: coreutils
ls --color hangs for directories linked from network resources if those resources are not available
I guess it hangs in trying to validate the link ( have not tried to wait and see if it times out or not )
easily reproducible.
annoying since --color is default
Running Ubuntu 8.0.4
2.6.24-21-generic #1 SMP Mon Aug 25 16:57:51 UTC 2008 x86_64 GNU/Linux
ls (GNU coreutils) 6.10
ISSUE:
since ls --color will try to determine if a symlink is broken or not (so that it will be correctly coloured), it *will* timeout on vanished resources.
WORKAROUND:
Inhibit 'ls' from following symlinks (at least in the context of --color):
eval `dircolors -b | sed s/or=[^:]*://`
Add the above to your profile.
There is a simple workaround - this avoids ls from following symlinks (at least in the context of --color):
eval `dircolors -b | sed s/or=[^:]*://`
Try add something like this to your profile.