瀏覽代碼

Fix 'in' field

Serj Kalichev 7 月之前
父節點
當前提交
1b7058088c
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      klish/ksession/kexec.c

+ 2 - 2
klish/ksession/kexec.c

@@ -823,11 +823,11 @@ bool_t kexec_need_stdin(const kexec_t *exec)
 			return BOOL_FALSE;
 		// Check first command within pipeline
 		if (num == 0) {
-			if (kentry_out(entry) == KACTION_IO_TRUE)
+			if (kentry_in(entry) == KACTION_IO_TRUE)
 				return BOOL_TRUE;
 		}
 		num++;
-		if (kentry_out(entry) == KACTION_IO_TTY)
+		if (kentry_in(entry) == KACTION_IO_TTY)
 			return BOOL_TRUE;
 	}