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