From 477294955a52874e167c33994dd99f9f3d60d912 Mon Sep 17 00:00:00 2001 From: nl6720 Date: Sat, 12 Nov 2022 11:30:19 +0200 Subject: configs/releng/airootfs/root/.zlogin: use grep -a to ensure /proc/cmdline is treated as text This protects against the case where /proc/cmdline contains garbage triggering grep to think it is a binary. See e.g. https://bugs.archlinux.org/task/76468 for an example. --- configs/releng/airootfs/root/.zlogin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configs') diff --git a/configs/releng/airootfs/root/.zlogin b/configs/releng/airootfs/root/.zlogin index 0fb119d..bf6bc8f 100644 --- a/configs/releng/airootfs/root/.zlogin +++ b/configs/releng/airootfs/root/.zlogin @@ -1,5 +1,5 @@ # fix for screen readers -if grep -Fq 'accessibility=' /proc/cmdline &> /dev/null; then +if grep -Fqa 'accessibility=' /proc/cmdline &> /dev/null; then setopt SINGLE_LINE_ZLE fi -- cgit v1.2.3-70-g09d2