[libvirt] [sandbox]console-rpc: fix segfault on null stdin

Radu Caragea sinaelgl at gmail.com
Wed Jun 13 13:47:34 UTC 2012


If gvir_sandbox_console_attach is called with NULL as the stdin
parameter it results in a segfault in the console-rpc module from
libvirt-sandbox.
Calling with NULL is of course useful when running something
noninteractive and you don't want it to grab the stdin or pass any fd
whatsoever.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: console_rpc_stdin_fix.patch
Type: text/x-patch
Size: 2917 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120613/817ceb3e/attachment-0001.bin>


More information about the libvir-list mailing list