summaryrefslogtreecommitdiff
path: root/src/corelib/x11
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-03-28 11:00:02 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-03-28 11:00:02 +0000
commit803045be7fa3489203eafbb48a61e41c0484c685 (patch)
tree4be130ed3a4be093e8c65af164462c6508f23f2d /src/corelib/x11
parente2457b21a32c02b26504132b14922b60f26aeb48 (diff)
downloadfpGUI-803045be7fa3489203eafbb48a61e41c0484c685.tar.xz
* Applied a minor patch from Michael van Canneyt which reduces the calls to readlink in X11 file dialog.
Diffstat (limited to 'src/corelib/x11')
-rw-r--r--src/corelib/x11/gfx_x11.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/x11/gfx_x11.pas b/src/corelib/x11/gfx_x11.pas
index c648dd9d..67d85e7b 100644
--- a/src/corelib/x11/gfx_x11.pas
+++ b/src/corelib/x11/gfx_x11.pas
@@ -2237,8 +2237,8 @@ begin
if Assigned(Result) then
begin
fullname := DirectoryName + Result.Name;
- Result.IsLink := FileIsSymlink(fullname);
Result.LinkTarget := ExtractTargetSymLinkPath(fullname);
+ Result.IsLink:=(Result.LinkTarget<>'');
Result.mode := sr.Mode;
Fpstat(PChar(fullname), info);
Result.GroupID := info.st_gid;