libvirt/src/util
Eric Blake 2b045d39df command: handle empty buffer argument correctly
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.
2011-12-03 15:55:46 -07:00
..
authhelper.c
authhelper.h
bitmap.c maint: rename virBufferVSprintf to virBufferAsprintf 2011-05-05 13:47:40 -06:00
bitmap.h Put <stdbool.h> into internal.h so it is available everywhere 2011-02-24 12:04:06 +00:00
buf.c Fix strchr call triggering gcc 4.3 & 4.4 bug 2011-11-15 15:00:10 -05:00
buf.h virbuf: add auto-indentation support 2011-10-20 16:02:16 -06:00
cgroup.c blkiotune: add qemu support for blkiotune.device_weight 2011-11-29 12:26:21 -07:00
cgroup.h blkiotune: add qemu support for blkiotune.device_weight 2011-11-29 12:26:21 -07:00
command.c command: handle empty buffer argument correctly 2011-12-03 15:55:46 -07:00
command.h command: move all docs into .c file 2011-07-21 10:34:51 -06:00
conf.c Allow for URI aliases when connecting to libvirt 2011-10-19 09:14:34 +01:00
conf.h
dnsmasq.c Santize naming of socket address APIs 2011-11-09 17:10:23 +00:00
dnsmasq.h Split src/util/network.{c,h} into 5 pieces 2011-11-15 10:27:54 +00:00
ebtables.c Move virRun, virExec*, virFork to util/command 2011-06-07 14:06:11 -04:00
ebtables.h
event_poll.c Remove time APIs from src/util/util.h 2011-11-30 11:43:50 +00:00
event_poll.h Move event code out of the daemon/ into src/util/ 2011-03-07 14:16:13 +00:00
event.c Introduce virConnectSetKeepAlive 2011-11-24 11:44:08 +01:00
event.h Promote virEvent*Handle/Timeout to public API 2011-06-21 10:08:47 -04:00
hash.c Add function to get hash table's key/value pairs 2011-11-18 11:58:17 -05:00
hash.h Add function to get hash table's key/value pairs 2011-11-18 11:58:17 -05:00
hooks.c utils: More useful error message for hook script failure 2011-07-29 22:40:47 +08:00
hooks.h qemu: add two hook script events "prepare" and "release" 2011-03-22 21:12:36 +08:00
hostusb.c util: avoid PATH_MAX-sized array 2011-06-22 17:13:58 -06:00
hostusb.h
iohelper.c util: fix thinko in runIO 2011-11-25 05:37:39 -07:00
iptables.c Santize naming of socket address APIs 2011-11-09 17:10:23 +00:00
iptables.h Split src/util/network.{c,h} into 5 pieces 2011-11-15 10:27:54 +00:00
json.c Remove bogus warning message in JSON code 2011-06-30 18:04:01 +01:00
json.h json: Fix *GetBoolean functions 2011-05-09 14:02:13 +02:00
keymaps.csv util: Add keymaps.csv 2011-07-21 15:02:52 +08:00
logging.c maint: typo fixes 2011-12-01 16:08:34 -07:00
logging.h logging: Do not log timestamp through syslog 2011-09-29 13:42:34 +02:00
memory.c build: fix cygwin strerror_r failure 2011-02-11 12:32:17 -07:00
memory.h build: make VIR_FREE do some type checking 2011-04-25 10:20:18 -06:00
netlink.c build: fix compilation on systems missing libnl and new includes 2011-06-23 11:54:11 -04:00
netlink.h build: fix compilation on systems missing libnl and new includes 2011-06-23 11:54:11 -04:00
pci.c qemu: Restore the original states of PCI device when restarting daemon 2011-10-30 13:00:06 +08:00
pci.h qemu: Restore the original states of PCI device when restarting daemon 2011-10-30 13:00:06 +08:00
processinfo.c
processinfo.h
qparams.c
qparams.h
sexpr.c Don't copy sexpr node value that is an empty string 2011-11-18 16:00:31 -07:00
sexpr.h Use virBufferPtr for sexpr2string instead of manual buffer handling 2011-04-05 09:14:59 +02:00
stats_linux.c build: rename files.h to virfile.h 2011-07-21 10:34:51 -06:00
stats_linux.h
storage_file.c util: avoid null deref on qcowXGetBackingStore 2011-11-30 11:05:13 +01:00
storage_file.h storage: Avoid memory leak on metadata fetching 2011-07-14 16:39:42 +02:00
sysinfo.c snapshot: simplify indentation of sysinfo 2011-10-20 16:02:16 -06:00
sysinfo.h snapshot: simplify indentation of sysinfo 2011-10-20 16:02:16 -06:00
threadpool.c Threadpool: Initialize new dynamic workers 2011-09-07 14:23:26 +02:00
threadpool.h daemon: Create priority workers pool 2011-09-05 18:14:08 +02:00
threads-pthread.c build: silence compiler warning on BSD 2011-11-04 16:43:37 -06:00
threads-pthread.h threads: add one-time initialization support 2011-04-25 08:53:09 -06:00
threads-win32.c threads: add one-time initialization support 2011-04-25 08:53:09 -06:00
threads-win32.h threads: add one-time initialization support 2011-04-25 08:53:09 -06:00
threads.c
threads.h threads: add one-time initialization support 2011-04-25 08:53:09 -06:00
util.c Remove time APIs from src/util/util.h 2011-11-30 11:43:50 +00:00
util.h Remove time APIs from src/util/util.h 2011-11-30 11:43:50 +00:00
uuid.c util: Fix virUUIDGeneratePseudoRandomBytes 2011-10-28 08:54:34 -06:00
uuid.h build: add compiler attributes to virUUIDParse 2011-10-13 12:23:37 -06:00
viraudit.c build: rename files.h to virfile.h 2011-07-21 10:34:51 -06:00
viraudit.h maint: rename virtaudit to match file contents 2011-07-12 07:24:43 -06:00
virfile.c Introduce virFileRewrite for safe file rewrite 2011-10-27 20:11:24 +02:00
virfile.h Introduce virFileRewrite for safe file rewrite 2011-10-27 20:11:24 +02:00
virkeycode-mapgen.py Fix keymap used to talk with QEMU 2011-08-26 14:18:57 +01:00
virkeycode.c Fix keymap used to talk with QEMU 2011-08-26 14:18:57 +01:00
virkeycode.h util: add virtkeycode module 2011-07-21 15:57:47 +08:00
virnetdev.c build: fix build on Cygwin 2011-12-03 13:03:44 -07:00
virnetdev.h Move functions for dealing with physical/virtual devices 2011-11-18 16:10:02 +00:00
virnetdevbandwidth.c bandwidth: Fix funky identation 2011-11-29 14:26:14 +01:00
virnetdevbandwidth.h Split src/util/network.{c,h} into 5 pieces 2011-11-15 10:27:54 +00:00
virnetdevbridge.c build: fix build on Cygwin 2011-12-03 13:03:44 -07:00
virnetdevbridge.h Split bridge.h into three separate files 2011-11-09 16:34:25 +00:00
virnetdevmacvlan.c util: Plug memory leak on virNetDevMacVLanCreateWithVPortProfile() error path 2011-11-30 16:57:08 -07:00
virnetdevmacvlan.h Allow creation of plain macvlan devices 2011-11-18 16:10:37 +00:00
virnetdevtap.c Split src/util/network.{c,h} into 5 pieces 2011-11-15 10:27:54 +00:00
virnetdevtap.h Split bridge.h into three separate files 2011-11-09 16:34:25 +00:00
virnetdevveth.c Move LXC veth.c code into shared utility APIs 2011-11-15 10:28:02 +00:00
virnetdevveth.h Move LXC veth.c code into shared utility APIs 2011-11-15 10:28:02 +00:00
virnetdevvportprofile.c Fix disabling of virtual port profile code on old hosts 2011-11-23 12:29:37 +00:00
virnetdevvportprofile.h Rename and split the macvtap.c file 2011-11-18 16:10:01 +00:00
virnodesuspend.c Don't mark suspend as active until we know it is running 2011-11-30 10:12:30 +00:00
virnodesuspend.h Move suspend capabilities APIs out of util.h into virnodesuspend.c 2011-11-30 10:12:29 +00:00
virpidfile.c debug: Annotate some variables as unused 2011-09-27 10:16:46 +02:00
virpidfile.h Add some APIs which use locking for crashsafe pidfile handling 2011-08-12 20:37:00 +01:00
virsocketaddr.c Split src/util/network.{c,h} into 5 pieces 2011-11-15 10:27:54 +00:00
virsocketaddr.h Split src/util/network.{c,h} into 5 pieces 2011-11-15 10:27:54 +00:00
virterror_internal.h build: avoid ATTRIBUTE_UNUSED in headers 2011-07-14 07:51:30 -06:00
virterror.c Export KVM Host Power Management capabilities 2011-11-22 11:31:22 +08:00
virtime.c Don't use undocumented __isleap macro 2011-12-01 13:28:44 +00:00
virtime.h Add internal APIs for dealing with time 2011-11-30 11:43:49 +00:00
xml.c Introduce virXMLSaveFile as a wrapper for virFileRewrite 2011-10-27 20:13:06 +02:00
xml.h Introduce virXMLSaveFile as a wrapper for virFileRewrite 2011-10-27 20:13:06 +02:00