|
@@ -574,7 +574,7 @@ begin
|
|
|
|
|
|
{$ifdef USE_STATX}
|
|
{$ifdef USE_STATX}
|
|
{ first try statx }
|
|
{ first try statx }
|
|
- if (statx(0,pchar(SystemFileName),0,STATX_MTIME or STATX_MODE,Infox)>=0) and not(fpS_ISDIR(Infox.stx_mode)) then
|
|
|
|
|
|
+ if (statx(AT_FDCWD,pchar(SystemFileName),0,STATX_MTIME or STATX_MODE,Infox)>=0) and not(fpS_ISDIR(Infox.stx_mode)) then
|
|
begin
|
|
begin
|
|
Result:=Infox.stx_mtime.tv_sec;
|
|
Result:=Infox.stx_mtime.tv_sec;
|
|
exit;
|
|
exit;
|