Explorar el Código

Merged revisions 1310 via svnmerge from
/trunk

git-svn-id: branches/fixes_2_0@1311 -

Jonas Maebe hace 20 años
padre
commit
e3017bf0bb
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      rtl/unix/ttyname.inc

+ 1 - 1
rtl/unix/ttyname.inc

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