Browse Source

+ Corrected example

michael 25 years ago
parent
commit
4d006e2dcb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/linuxex/ex53.pp

+ 1 - 1
docs/linuxex/ex53.pp

@@ -7,7 +7,7 @@ Uses linux;
 Var Info : Stat;
 
 begin
-  if FStat (paramstr(1),info) then
+  if LStat (paramstr(1),info) then
     begin
     if S_ISLNK(info.mode) then 
       Writeln ('File is a link');