On Mit, 2014-03-26 at 10:01 +0100, Ralf Friedl wrote:
[....]
> But the /proc/<pid>/cmdline interface doesn't convert null bytes to
> spaces. Doing so would lose information. Some programs may choose to do
> this conversion, but programs reading cmdline must be prepared for null
> bytes anyway.
>
> hex -g /proc/30883/cmdline
> 0000 2f 75 73 72 2f 73 62 69 6e 2f 61 63 70 69 64 00 /usr/sbin/acpid.
> 0010 2d 6e 00 2d 66 00 -n.-f.
Yup, the '\0' always separates the parameters ....
Kind regards,
Bernd
--
Bernd Petrovitsch Email : [email protected]
LUGA : http://www.luga.at
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox