From ea2982a143e3a2d9187709b7bda1513636b069b4 Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Tue, 4 Jan 2005 13:34:10 +0000 Subject: [PATCH] Remove executable status info from typeIndicator. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9423 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/ChangeLog | 1 + src/support/FileInfo.C | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/support/ChangeLog b/src/support/ChangeLog index 61b0b146da..b6dd5c5dd8 100644 --- a/src/support/ChangeLog +++ b/src/support/ChangeLog @@ -4,6 +4,7 @@ the stored file name as it breaks Window's version of stat(). (isLink): protect the code with #ifdef S_ISLNK. (dostat): protect the code with #ifdef HAVE_LSTAT. + (typeIndicator): remove code testing the file's executable status. * filetools.C (LyXReadLink): protect the code with #ifdef HAVE_READLINK. diff --git a/src/support/FileInfo.C b/src/support/FileInfo.C index 342e5e92d4..0ac92ed87a 100644 --- a/src/support/FileInfo.C +++ b/src/support/FileInfo.C @@ -239,8 +239,6 @@ char FileInfo::typeIndicator() const if (S_ISSOCK(buf_.st_mode)) return '='; #endif - if (S_ISREG(buf_.st_mode) && (buf_.st_mode & (S_IEXEC | S_IXGRP | S_IXOTH))) - return '*'; return ' '; } -- 2.39.5