diff options
| author | nl6720 <nl6720@gmail.com> | 2022-11-12 11:30:19 +0200 |
|---|---|---|
| committer | nl6720 <nl6720@gmail.com> | 2022-11-12 11:35:36 +0200 |
| commit | 477294955a52874e167c33994dd99f9f3d60d912 (patch) | |
| tree | 27ffb90c4b2ae7cac8155fbfcffc09b477027ae5 /configs/releng/airootfs/root | |
| parent | ee4e4a96d260040af11482cf9d28b49541b813a6 (diff) | |
| download | archiso-477294955a52874e167c33994dd99f9f3d60d912.tar.gz archiso-477294955a52874e167c33994dd99f9f3d60d912.tar.bz2 | |
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.
Diffstat (limited to 'configs/releng/airootfs/root')
| -rw-r--r-- | configs/releng/airootfs/root/.zlogin | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
