[Buildroot] [PATCH 2/3] eudev: fix printf usage in init script
Carlos Santos
casantos at datacom.ind.br
Tue Jan 30 04:07:19 UTC 2018
Using a variable in a printf format string may lead to undesirable
results if the variable contains format controls, so replace
printf "foo $var bar"
by
printf "foo %s bar" "$var"
Signed-off-by: Carlos Santos <casantos at datacom.ind.br>
---
package/eudev/S10udev | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/eudev/S10udev b/package/eudev/S10udev
index 654a04df36..640fec625b 100755
--- a/package/eudev/S10udev
+++ b/package/eudev/S10udev
@@ -27,7 +27,7 @@ test -r $UDEV_CONFIG || exit 6
case "$1" in
start)
- printf "Populating ${udev_root:-/dev} using udev: "
+ printf "Populating %s using udev: " "${udev_root:-/dev}"
printf '\000\000\000\000' > /proc/sys/kernel/hotplug
$UDEV_BIN -d || { echo "FAIL"; exit 1; }
udevadm trigger --type=subsystems --action=add
--
2.14.3
More information about the buildroot
mailing list