mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 06:49:27 +02:00
* fixed ttyname()
git-svn-id: trunk@1310 -
This commit is contained in:
parent
b766a42e23
commit
e68436cfda
@ -71,7 +71,7 @@ var
|
||||
|
||||
begin
|
||||
TTYName:='';
|
||||
if (fpfstat(handle,st)=-1) and (isatty (handle)<>1) then
|
||||
if (fpfstat(handle,st)=-1) or (isatty (handle)<>1) then
|
||||
exit;
|
||||
mydev:=st.st_dev;
|
||||
myino:=st.st_ino;
|
||||
|
Loading…
Reference in New Issue
Block a user