Răsfoiți Sursa

* fixed ttyname()

git-svn-id: trunk@1310 -
Jonas Maebe 20 ani în urmă
părinte
comite
e68436cfda
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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;