fsck: remove unnecessary isatty() checks

There are legitimate use cases for interactive fsck.bookmarkfs
without a terminal, and Readline works fine without one.
This commit is contained in:
CismonX 2025-02-25 08:35:15 +08:00
parent 3e5c800de8
commit 7816e955b7
No known key found for this signature in database
GPG key ID: 3094873E29A482FB

View file

@ -101,10 +101,6 @@ init_readline (
if (!info->flags.interactive) {
return 0;
}
if (!isatty(STDIN_FILENO) || !isatty(STDOUT_FILENO)) {
log_puts("standard input and/or output is not a terminal");
return -1;
}
rl_readline_name = info->rl_app_name;
rl_inhibit_completion = 1;