mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 01:59:18 +02:00
+ Corrected example
This commit is contained in:
parent
4fb6b31739
commit
4d006e2dcb
@ -7,7 +7,7 @@ Uses linux;
|
|||||||
Var Info : Stat;
|
Var Info : Stat;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
if FStat (paramstr(1),info) then
|
if LStat (paramstr(1),info) then
|
||||||
begin
|
begin
|
||||||
if S_ISLNK(info.mode) then
|
if S_ISLNK(info.mode) then
|
||||||
Writeln ('File is a link');
|
Writeln ('File is a link');
|
||||||
|
Loading…
Reference in New Issue
Block a user