Skip to content

Commit 648ba0e

Browse files
committed
hwdb: optimize isatty()-per-line away
Fixes: systemd#15407
1 parent 451fcbf commit 648ba0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsystemd/sd-hwdb/hwdb-util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ static int import_file(struct trie *trie, const char *filename, uint16_t file_pr
488488
size_t len;
489489
char *pos;
490490

491-
r = read_line(f, LONG_LINE_MAX, &line);
491+
r = read_line_full(f, LONG_LINE_MAX, READ_LINE_NOT_A_TTY, &line);
492492
if (r < 0)
493493
return r;
494494
if (r == 0)

0 commit comments

Comments
 (0)