mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 21:19:31 +02:00
+ Corrected example
This commit is contained in:
parent
4fb6b31739
commit
4d006e2dcb
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user