Browse Source

* fixed ttyname()

git-svn-id: trunk@1310 -
Jonas Maebe 20 years ago
parent
commit
e68436cfda
1 changed files with 1 additions and 1 deletions
  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;