Ticket #1753: panel: bad mounpoint is no longer 'red' highlighted

Restored behavior with stale mountpoint (now handled as stale link).

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Slava Zanko 2009-10-29 01:39:24 +02:00
parent f9fc03d5c5
commit 12ed4d0b45
2 changed files with 9 additions and 6 deletions

View File

@ -4,11 +4,6 @@
[directory]
type=DIR
[stalelink]
type=STALE_LINK
[symlink]
type=SYMLINK
[device]
type=DEVICE
@ -16,6 +11,12 @@
[special]
type=SPECIAL
[stalelink]
type=STALE_LINK
[symlink]
type=SYMLINK
[core]
regexp=^core\\.*\\d*$

View File

@ -88,7 +88,9 @@ mc_fhl_is_link_to_dir (file_entry * fe)
inline static gboolean
mc_fhl_is_stale_link (file_entry * fe)
{
return mc_fhl_is_link (fe) && (fe->f.stale_link);
gboolean is_link = mc_fhl_is_link (fe);
return (!is_link && !mc_fhl_is_file (fe)) || (is_link && (fe->f.stale_link));
}
inline static gboolean