[#6282] hush: write errors in redirects write too much data
Submitted By: Martin Strubel
Open Fixed In Release:
Found In Release:
Kernel Functions Board:
ALL Silicon Revision:
Is this bug repeatable?:
Uboot version or rev.:
Toolchain version or rev.:
App binary format:
Summary: hush: write errors in redirects write too much data
If a GPIO is exported from a script twice, like shown below, it obviously causes the wrong GPIO to be exported.
/ # echo 11 >/sys/class/gpio/export ; ls /sys/class/gpio/
export gpio11 gpiochip0 unexport
export gpio1 gpio11 gpiochip0 unexport
--- Mike Frysinger 2010-10-06 02:52:13
not a GPIO bug. this is how the shell works when a redirected write fails.
simply strace it and you'll see that it writes too many bytes.
write(1, "11\n", 3) = -1 EBUSY (Device or
write(1, "1", 1) = 1
not that big of a deal. dont write incorrect shell scripts.
File Name File Type File Size Posted By
No Files Were Found