* fixed ttyname()

git-svn-id: trunk@1310 -
This commit is contained in:
Jonas Maebe 2005-10-07 09:36:35 +00:00
parent b766a42e23
commit e68436cfda

View File

@ -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;