poe

Уређивач .po фајлова
git clone https://git.sr.ht/~strahinja/poe
Дневник | Датотеке | Референце | ПРОЧИТАЈМЕ | ЛИЦЕНЦА

чување 3ac756e3f0b2a11573adae728fdc7da1326d8d50
родитељ ba61dac3e362ddacc17e3ef067b2649cb7378c8b
Аутор: Страхиња Радић <sr@strahinja.org>
Датум:   Thu, 21 May 2026 09:57:15 +0000

Unveil /dev/tty before tb_init because of changes in OpenBSD 7.9

Diffstat:
Mpoe.c | 8++++++++
измењених датотека: 1, додавања: 8(+), брисања: 0(-)

diff --git a/poe.c b/poe.c @@ -2909,6 +2909,14 @@ main_skip_backups: perror(PROGRAM_NAME ": unveil"); goto main_done; } + /* Have to explicitly unveil /dev/tty before tb_init despite pledge(tty) + * in OpenBSD 7.9+ + */ + if (unveil("/dev/tty", "rw")) + { + perror(PROGRAM_NAME ": unveil"); + goto main_done; + } if (unveil(NULL, NULL) < 0) { perror(PROGRAM_NAME ": unveil");