* gicon.c (get_default_icon): Don't call is_exe for symlinks.

This commit is contained in:
Pavel Roskin 2001-08-04 00:33:27 +00:00
parent cd34ee8d1f
commit a819801617
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2001-08-03 Pavel Roskin <proski@gnu.org>
* gicon.c (get_default_icon): Don't call is_exe for symlinks.
2001-08-03 Abel Cheung <maddog@linux.org.hk>
* *.desktop: Added traditional Chinese strings.

View File

@ -390,7 +390,7 @@ get_default_icon (file_entry *fe)
if (S_ISFIFO (mode))
return iset_fifo;
if (is_exe (mode))
if (!S_ISLNK (mode) && is_exe (mode))
return iset_executable;
if (!strcmp (fe->fname, "core") || !strcmp (extension (fe->fname), "core"))