Explorar o código

* fixed ttyname()

git-svn-id: trunk@1310 -
Jonas Maebe %!s(int64=20) %!d(string=hai) anos
pai
achega
e68436cfda
Modificáronse 1 ficheiros con 1 adicións e 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;