From 14fca14788dc41131422e60d903248b239d880fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Czerpak?= Date: Tue, 19 Apr 2016 23:14:29 +0200 Subject: [PATCH] 2016-04-19 23:14 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * src/common/hbffind.c * in *nix builds of hb_fsFind*() show "." leading file names if file mask also starts with "." regardless of hidden attribute state. This modification restores previous Harbour behavior keeping the new functionality. --- ChangeLog.txt | 7 +++++++ src/common/hbffind.c | 2 ++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog.txt b/ChangeLog.txt index 61994a1698..91f63cd0a2 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -10,6 +10,13 @@ * Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment */ +2016-04-19 23:14 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) + * src/common/hbffind.c + * in *nix builds of hb_fsFind*() show "." leading file names if file + mask also starts with "." regardless of hidden attribute state. + This modification restores previous Harbour behavior keeping the + new functionality. + 2016-04-19 14:49 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * src/rtl/gtwin/gtwin.c ! fixed wrong translation in my previous commit diff --git a/src/common/hbffind.c b/src/common/hbffind.c index 1520ef3dfe..3b60642873 100644 --- a/src/common/hbffind.c +++ b/src/common/hbffind.c @@ -753,6 +753,8 @@ static HB_BOOL hb_fsFindNextLow( PHB_FFIND ffind ) dirname[ 1 ] = HB_OS_PATH_DELIM_CHR; dirname[ 2 ] = '\0'; } + if( info->pattern[ 0 ] == '.' ) + ffind->attrmask |= HB_FA_HIDDEN; /* tzset(); */