#917: command-line arguments are not always correctly parsed ------------------------+--------------------------------------------------- Reporter: roothorick | Owner: lennart Type: defect | Status: new Milestone: | Component: daemon Keywords: | ------------------------+--------------------------------------------------- The pulseaudio daemon appears to assume that whatever is calling it has fully broken up the argument list by spaces. This assumption is unsafe (note the third execve):
{{{ roothorick@modestmonster ~ $ head -n 1 ~/opt/bin/jackpa #!/usr/bin/pulseaudio -nD --exit-idle-time=-1 -F roothorick@modestmonster ~ $ strace -eprocess bash -c ~/opt/bin/jackpa execve("/bin/bash", ["bash", "-c", "/home/roothorick/opt/bin/jackpa"], [/* 45 vars */]) = 0 arch_prctl(ARCH_SET_FS, 0x7f154de18700) = 0 execve("/home/roothorick/opt/bin/jackpa", ["/home/roothorick/opt/bin/jackpa"], [/* 45 vars */]) = 0 arch_prctl(ARCH_SET_FS, 0x7f9d79e8f740) = 0 execve("/usr/bin/pulseaudio", ["/usr/bin/pulseaudio", "-nD --exit-idle- time=-1 -F", "/home/roothorick/opt/bin/jackpa"], [/* 46 vars */]) = 0 arch_prctl(ARCH_SET_FS, 0x7f644e221740) = 0 /usr/bin/pulseaudio: invalid option -- ' ' E: main.c: Failed to parse command line. exit_group(1) = ? roothorick@modestmonster ~ $ }}} Linux 2.6.34-gentoo-r6, Bash 4.0_p37, pulseaudio 0.9.22 -- Ticket URL: <http://pulseaudio.org/ticket/917> PulseAudio <http://pulseaudio.org/> The PulseAudio Sound Server _______________________________________________ pulseaudio-tickets mailing list pulseaudio-tickets@mail.0pointer.de https://tango.0pointer.de/mailman/listinfo/pulseaudio-tickets