浏览代码

* fixed ttyname()

git-svn-id: trunk@1310 -
Jonas Maebe 20 年之前
父节点
当前提交
e68436cfda
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;