123456789101112131415 |
- Subject: Use the --null-data option of grep to scan the environment
- Author: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
- Date: 2002-02-24
- --- a/src/initramfs-tools/scripts/local-top/clevis.in
- +++ b/src/initramfs-tools/scripts/local-top/clevis.in
- @@ -106,7 +106,7 @@
- done
-
- # Import CRYPTTAB_SOURCE from the askpass process.
- - local "$(grep '^CRYPTTAB_SOURCE=' /proc/"$pid"/environ)"
- + local "$(grep -z '^CRYPTTAB_SOURCE=' /proc/"$pid"/environ)"
-
- # Make sure that CRYPTTAB_SOURCE is actually a block device
- [ ! -b "$CRYPTTAB_SOURCE" ] && continue
|