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