чување 83e5082fdcd3661c838f93e559032e055803a1cb
родитељ 0c1acd331ffdc34eba0178809dccef51186057ce
Аутор: Страхиња Радић <sr@strahinja.org>
Датум: Thu, 21 May 2026 09:07:23 +0000
Unveil /dev/tty before tb_init because of changes in OpenBSD 7.9
Diffstat:
измењених датотека: 1, додавања: 8(+), брисања: 0(-)
diff --git a/sled.c b/sled.c
@@ -3144,6 +3144,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");