aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Carlos Santos <casantos@datacom.ind.br>2018-01-30 02:07:19 -0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2018-01-31 12:12:45 +0100
commit40dd5a139e3f8397bcb127d5ff18e11d9174b1dc (patch)
tree34f8052ed4eae08ef5fa9fe13735ee735595ab28
parentafa5cb9c304e02bf82f35fe228c7ac2f13fbc532 (diff)
downloadbuildroot-40dd5a139e3f8397bcb127d5ff18e11d9174b1dc.tar.gz
buildroot-40dd5a139e3f8397bcb127d5ff18e11d9174b1dc.tar.bz2
eudev: fix printf usage in init script
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@datacom.ind.br> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> (cherry picked from commit 6298ed8bf46dd546d4ee7244136f2f9bad82ecad) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rwxr-xr-xpackage/eudev/S10udev2
1 files changed, 1 insertions, 1 deletions
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