powerpc-utils/powerpc-utils-fixup_null_byte.patch
Than Ngo 6bc21642a1 - update_flash_nv: fixup null byte command substitution warning
- drmgr: Fix segfault when running 'drmgr -c pmig -h'
2020-03-09 10:49:03 +01:00

20 lines
619 B
Diff

commit 8a0ea6e12b379216e6c498ec15d480cf95e9bbe4
Author: Than Ngo <than@redhat.com>
Date: Tue Feb 25 12:14:00 2020 +0100
update_flash_nv: fixup null byte command substitution warning
diff --git a/scripts/update_flash_nv b/scripts/update_flash_nv
index bb9dfee..8be9e8e 100755
--- a/scripts/update_flash_nv
+++ b/scripts/update_flash_nv
@@ -313,7 +313,7 @@ fsp_validate_flash() {
echo 1 > $SYS_VALIDATE_FLASH 2>/dev/null
# Display appropriate message, exiting if necessary
- output="$(cat $SYS_VALIDATE_FLASH)"
+ output="$(tr -d '\0' < $SYS_VALIDATE_FLASH)"
fsp_echo_validate_return_status "$output"
}