From 0b442041eb1015b9d7d6e58316ee7d54d6996582 Mon Sep 17 00:00:00 2001 From: kn Date: Wed, 28 Dec 2022 09:53:33 +0000 Subject: [PATCH] Make wait_reorder_libs() honour library_aslr=NO Otherwise it will unconditionally print an empty line in case relinking is disabled. Reported by kettenis Feedback OK tb OK florian --- etc/rc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/etc/rc b/etc/rc index 149d6f5a33a..d4379e5ad91 100644 --- a/etc/rc +++ b/etc/rc @@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.567 2022/12/26 20:24:43 kn Exp $ +# $OpenBSD: rc,v 1.568 2022/12/28 09:53:33 kn Exp $ # System startup script run by init on autoboot or after single-user. # Output and error are redirected to console by init, and the console is the @@ -255,6 +255,8 @@ reorder_libs() { wait_reorder_libs() { local _line + [[ $library_aslr == NO ]] && return + while IFS= read -p _line; do echo -n "$_line" done -- 2.20.1