mirror of
https://git.sr.ht/~cismonx/bookmarkfs
synced 2025-06-07 19:58:50 +00:00
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:
parent
3e5c800de8
commit
7816e955b7
1 changed files with 0 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue