8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 20:03:02 +01:00

If stdin is FILE_TYPE_PIPE then we should treat it as non-interactive (#187)

This commit is contained in:
Artyom Smirnov 2023-11-24 14:12:11 +03:00 committed by GitHub
parent 4c83384b9a
commit a263a19a49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9469,7 +9469,7 @@ static bool stdin_redirected()
#ifdef WIN_NT
HANDLE in = GetStdHandle(STD_INPUT_HANDLE);
const DWORD file_type = GetFileType(in);
if (file_type == FILE_TYPE_CHAR || file_type == FILE_TYPE_PIPE)
if (file_type == FILE_TYPE_CHAR)
return false;
#else
if (isatty(fileno(stdin)))