mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-27 16:15:23 +00:00
2b045d39df
virBufferContentAndReset (intentionally) returns NULL for a buffer with no content, but it is feasible to invoke a command with an explicit empty string. * src/util/command.c (virCommandAddEnvBuffer): Reject empty string. (virCommandAddArgBuffer): Allow explicit empty argument. * tests/commandtest.c (test9): Test it. * tests/commanddata/test9.log: Adjust.
21 lines
245 B
Plaintext
21 lines
245 B
Plaintext
ARG:-version
|
|
ARG:-log=bar.log
|
|
ARG:arg1
|
|
ARG:arg2
|
|
ARG:
|
|
ARG:arg4
|
|
ARG:arg5
|
|
ARG:arg6
|
|
ENV:DISPLAY=:0.0
|
|
ENV:HOME=/home/test
|
|
ENV:HOSTNAME=test
|
|
ENV:LANG=C
|
|
ENV:LOGNAME=testTMPDIR=/tmp
|
|
ENV:PATH=/usr/bin:/bin
|
|
ENV:USER=test
|
|
FD:0
|
|
FD:1
|
|
FD:2
|
|
DAEMON:no
|
|
CWD:/tmp
|