Browse Source

* Do not use deprecated stat.mode but stat.st_mode

git-svn-id: trunk@20232 -
joost 13 years ago
parent
commit
ac1a2abf88
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fpmkunit/src/fpmkunit.pp

+ 1 - 1
packages/fpmkunit/src/fpmkunit.pp

@@ -3949,7 +3949,7 @@ begin
     if FpStat(Src,FileStat) <> 0 then
       Log(vlWarning,SWarnCanNotGetAccessRights,[Src])
     else
-      if FpChmod(s,FileStat.mode) <> 0 then
+      if FpChmod(s,FileStat.st_mode) <> 0 then
         Log(vlWarning,SWarnCanNotSetAccessRights,[S]);
 {$endif UNIX}
   finally