소스 검색

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