libvirt/src/util
Nikolay Shirokovskiy cd9cbeffe9 virStrncpy: fix to successfully copy empty string
After [1] we got failure on attempt to copy empty string.
Before the patch empty string was copied successfuly.
Restore the original behaviour.

[1] 7d70a63b util: Improve virStrncpy() implementation

Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
2019-09-18 09:25:17 +03:00
..
iohelper.c iohelper: Remove remaining newlines from error messages 2019-02-20 08:51:39 +01:00
Makefile.inc.am util: Introduce virhostuptime 2019-08-22 16:46:44 +02:00
viralloc.c util: make allocation functions abort on OOM 2019-09-13 10:05:17 +01:00
viralloc.h util: remove several unused _QUIET allocation macro variants 2019-09-13 10:05:17 +01:00
virarch.c util: add RISC-V architectures 2018-08-24 13:23:36 +02:00
virarch.h util: arch.h: use #pragma once in headers 2019-06-19 17:12:31 +02:00
virarptable.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virarptable.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
viratomic.c
viratomic.h maint: Update to latest gnulib 2019-08-08 07:31:03 -05:00
viraudit.c internal: Move <stdio.h> include to internal.h 2018-09-20 10:16:38 +02:00
viraudit.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virauth.c util: get rid of virGetEnv{Allow,Block}SUID functions 2019-08-07 16:54:02 +01:00
virauth.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virauthconfig.c util: Don't include 'viralloc.h' into other header files 2019-04-10 09:12:04 +02:00
virauthconfig.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virautoclean.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virbitmap.c util: Introduce virBitmapUnion() 2019-06-04 09:29:35 +02:00
virbitmap.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virbuffer.c build: bump min required gcc to 4.8 2019-08-07 14:26:12 +01:00
virbuffer.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
vircgroup.c vircgroup: fix cgroups v2 controllers detection 2019-07-25 10:50:44 +02:00
vircgroup.h qemu: Add support for overriding max threads per process limit 2019-07-24 15:59:49 -06:00
vircgroupbackend.c Always put _LAST enums on second line of VIR_ENUM_IMPL 2019-04-11 12:47:23 -04:00
vircgroupbackend.h vircgroup: fix cgroups v2 controllers detection 2019-07-25 10:50:44 +02:00
vircgrouppriv.h util: vircgroup: move virCgroupGetValueStr out of virCgroupGetValueForBlkDev 2019-06-21 14:35:57 +02:00
vircgroupv1.c vircgroup: fix cgroups v2 controllers detection 2019-07-25 10:50:44 +02:00
vircgroupv1.h util: cgroup: use #pragma once in headers 2019-06-19 17:12:32 +02:00
vircgroupv2.c vircgroupv2: fix setting cpu.max period 2019-09-06 09:24:43 +02:00
vircgroupv2.h util: cgroup: use #pragma once in headers 2019-06-19 17:12:32 +02:00
virclosecallbacks.c Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
virclosecallbacks.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
vircommand.c util: get rid of virGetEnv{Allow,Block}SUID functions 2019-08-07 16:54:02 +01:00
vircommand.h util: simplify virCommand APIs for env passthrough. 2019-08-07 16:54:02 +01:00
vircommandpriv.h util: command: use #pragma once in headers 2019-06-19 17:12:32 +02:00
virconf.c Always put _LAST enums on second line of VIR_ENUM_IMPL 2019-04-11 12:47:23 -04:00
virconf.h lib: Define and use autofree for virConfPtr 2019-09-10 09:34:37 +02:00
vircrypto.c Fix minor typos in messages and docs 2018-12-05 10:39:54 +01:00
vircrypto.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virdbus.c Revert "dbus: correctly build reply message" 2019-09-10 09:47:13 +02:00
virdbus.h Revert "dbus: correctly build reply message" 2019-09-10 09:47:13 +02:00
virdbuspriv.h util: dbus: use #pragma once in headers 2019-06-19 17:12:32 +02:00
virdevmapper.c Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
virdevmapper.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virdnsmasq.c lib: Don't use virReportSystemError() if virCommandRun() fails 2019-04-12 15:56:28 +02:00
virdnsmasq.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virebtables.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virebtables.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virendian.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virenum.c Always put _LAST enums on second line of VIR_ENUM_IMPL 2019-04-11 12:47:23 -04:00
virenum.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virerror.c tpm: Parse the capabilities supported by swtpm and swtpm_setup 2019-07-26 10:30:46 +01:00
virerror.h util: error: Add API for prefixing last set error with a string 2019-06-20 17:10:24 +02:00
virerrorpriv.h util: error: use #pragma once in headers 2019-06-19 17:12:32 +02:00
virevent.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virevent.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
vireventpoll.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
vireventpoll.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virfcp.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virfcp.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virfdstream.c Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
virfdstream.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virfile.c util: activate directory override when used from library 2019-09-10 11:03:35 +01:00
virfile.h util: activate directory override when used from library 2019-09-10 11:03:35 +01:00
virfilecache.c Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
virfilecache.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virfirewall.c Always put _LAST enums on second line of VIR_ENUM_IMPL 2019-04-11 12:47:23 -04:00
virfirewall.h util: firewall: use #pragma once in headers 2019-06-19 17:12:32 +02:00
virfirewalld.c util: eliminate duplicate function virDBusMessageRead 2019-04-15 12:47:44 -04:00
virfirewalld.h util: firewall: use #pragma once in headers 2019-06-19 17:12:32 +02:00
virfirewalldpriv.h util: firewall: use #pragma once in headers 2019-06-19 17:12:32 +02:00
virfirewallpriv.h util: firewall: use #pragma once in headers 2019-06-19 17:12:32 +02:00
virfirmware.c virfirmware: Expose and define autoptr for virFirmwareFree 2019-09-12 12:19:56 +02:00
virfirmware.h virfirmware: Expose and define autoptr for virFirmwareFree 2019-09-12 12:19:56 +02:00
virgettext.c internal: Move <stdio.h> include to internal.h 2018-09-20 10:16:38 +02:00
virgettext.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virgic.c Always put _LAST enums on second line of VIR_ENUM_IMPL 2019-04-11 12:47:23 -04:00
virgic.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virhash.c util: hash: Append to hash buckets when adding new entries 2019-04-25 13:28:16 +02:00
virhash.h util: hash: use #pragma once in headers 2019-06-19 17:12:32 +02:00
virhashcode.c
virhashcode.h util: hash: use #pragma once in headers 2019-06-19 17:12:32 +02:00
virhook.c network: convert hook script to take a network port XML 2019-06-17 15:19:54 +01:00
virhook.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virhostcpu.c util: Add virHostCPUGetTscInfo 2019-06-03 18:07:16 +02:00
virhostcpu.h util: host: use #pragma once in headers 2019-06-19 17:12:32 +02:00
virhostcpupriv.h util: host: use #pragma once in headers 2019-06-19 17:12:32 +02:00
virhostdev.c virhostdev: Don't unref @pcidevs twice 2019-09-09 16:37:23 +02:00
virhostdev.h util: host: use #pragma once in headers 2019-06-19 17:12:32 +02:00
virhostmem.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virhostmem.h util: host: use #pragma once in headers 2019-06-19 17:12:32 +02:00
virhostuptime.c util: Introduce virhostuptime 2019-08-22 16:46:44 +02:00
virhostuptime.h util: Introduce virhostuptime 2019-08-22 16:46:44 +02:00
viridentity.c util: allow identity to be imported/exported as typed parameters 2019-09-16 11:25:45 +01:00
viridentity.h util: allow identity to be imported/exported as typed parameters 2019-09-16 11:25:45 +01:00
virinitctl.c virinitctl: Provide a stub list of init fifos for non-Linux 2019-02-07 16:17:56 +01:00
virinitctl.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
viriptables.c network: split setup of ipv4 and ipv6 top level chains 2019-03-19 10:01:53 +00:00
viriptables.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
viriscsi.c util: Fix misaligned arguments and misaligned conditions for [if|while|...] 2018-09-24 10:02:40 +02:00
viriscsi.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virjson.c util: json: Introduce helper to prepend string into a virJSONValueObject 2019-07-18 17:59:34 +02:00
virjson.h util: json: Introduce helper to prepend string into a virJSONValueObject 2019-07-18 17:59:34 +02:00
virkeycode.c Always put _LAST enums on second line of VIR_ENUM_IMPL 2019-04-11 12:47:23 -04:00
virkeycode.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virkeyfile.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virkeyfile.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virkmod.c util: kmod: use VIR_AUTOPTR for aggregate types 2018-07-27 17:21:25 +02:00
virkmod.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virlease.c util: get rid of virGetEnv{Allow,Block}SUID functions 2019-08-07 16:54:02 +01:00
virlease.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virlockspace.c Revert "virlockspace: Allow caller to specify start and length offset in virLockSpaceAcquireResource" 2018-11-16 13:42:39 +01:00
virlockspace.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virlog.c util: get rid of virGetEnv{Allow,Block}SUID functions 2019-08-07 16:54:02 +01:00
virlog.h util: log: use #pragma once in headers 2019-06-19 17:12:32 +02:00
virmacaddr.c util: Don't include 'viralloc.h' into other header files 2019-04-10 09:12:04 +02:00
virmacaddr.h util: mac: use #pragma once in headers 2019-06-19 17:12:32 +02:00
virmacmap.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virmacmap.h util: mac: use #pragma once in headers 2019-06-19 17:12:32 +02:00
virmdev.c Always put _LAST enums on second line of VIR_ENUM_IMPL 2019-04-11 12:47:23 -04:00
virmdev.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virmodule.c Fix minor typos in messages and docs 2018-12-05 10:39:54 +01:00
virmodule.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virnetdev.c Revert "Include unistd.h directly by files using it" 2019-04-10 12:26:32 +02:00
virnetdev.h qemu: support unmanaged target tap dev for <interface type='ethernet'> 2019-09-09 14:38:01 -04:00
virnetdevbandwidth.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virnetdevbandwidth.h util: netdev: use #pragma once in headers 2019-06-19 17:12:31 +02:00
virnetdevbridge.c util: Fix uninitalized variable to avoid garbage value. 2019-04-30 09:44:21 +02:00
virnetdevbridge.h util: netdev: use #pragma once in headers 2019-06-19 17:12:31 +02:00
virnetdevip.c Revert "Include unistd.h directly by files using it" 2019-04-10 12:26:32 +02:00
virnetdevip.h util: netdev: use #pragma once in headers 2019-06-19 17:12:31 +02:00
virnetdevmacvlan.c virnetdevmacvlan: Provide stubs for macvlan related functions 2019-09-10 13:35:09 +02:00
virnetdevmacvlan.h util: make a couple virNetDevMacVlan*() functions public 2019-09-09 14:31:55 -04:00
virnetdevmidonet.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virnetdevmidonet.h util: netdev: use #pragma once in headers 2019-06-19 17:12:31 +02:00
virnetdevopenvswitch.c test: Introduce virnetdevopenvswitchtest 2019-07-16 13:42:39 +02:00
virnetdevopenvswitch.h test: Introduce virnetdevopenvswitchtest 2019-07-16 13:42:39 +02:00
virnetdevtap.c util: allow tap-based guest interfaces to have MAC address prefix 0xFE 2019-08-12 14:22:05 -04:00
virnetdevtap.h util: netdev: use #pragma once in headers 2019-06-19 17:12:31 +02:00
virnetdevveth.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virnetdevveth.h util: netdev: use #pragma once in headers 2019-06-19 17:12:31 +02:00
virnetdevvlan.c util: Don't include 'viralloc.h' into other header files 2019-04-10 09:12:04 +02:00
virnetdevvlan.h util: netdev: use #pragma once in headers 2019-06-19 17:12:31 +02:00
virnetdevvportprofile.c util: add API for copying virtual port profile data 2019-04-17 14:12:56 +01:00
virnetdevvportprofile.h util: netdev: use #pragma once in headers 2019-06-19 17:12:31 +02:00
virnetlink.c util: Don't include 'viralloc.h' into other header files 2019-04-10 09:12:04 +02:00
virnetlink.h util: netlink: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virnodesuspend.c util: be quiet when pm-is-supported is unavailable 2019-08-14 11:27:38 +02:00
virnodesuspend.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virnuma.c util: Propagate numad failures correctly 2019-06-04 10:13:07 +02:00
virnuma.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virobject.c object: Add sanity check on correct parent class 2019-03-15 11:10:12 -05:00
virobject.h util: object: use #pragma once in headers 2019-06-19 17:12:32 +02:00
virpci.c virpci: Rename virPCIDevice{Bind,Unbind}FromStubWithOverride 2019-08-23 11:45:01 +02:00
virpci.h virpci: Remove unused virPCIDeviceWaitForCleanup 2019-08-23 10:48:34 +02:00
virperf.c Always put _LAST enums on second line of VIR_ENUM_IMPL 2019-04-11 12:47:23 -04:00
virperf.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virpidfile.c src: honour the RUNSTATEDIR variable in all code 2019-08-27 10:23:13 +01:00
virpidfile.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virpolkit.c lib: Avoid double close when passing FDs with virCommandPassFD() 2019-05-17 16:01:11 +02:00
virpolkit.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virportallocator.c Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
virportallocator.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virprobe.h util: virprobe.h: use #pragma once in headers 2019-06-19 17:12:32 +02:00
virprocess.c util: assume modern CPU_ALLOC macros always exist 2019-07-09 18:44:19 +01:00
virprocess.h tests: Add test case for QEMU pci-hostdev hotplug 2019-09-09 16:44:24 +02:00
virqemu.c util: Fix misaligned arguments and misaligned conditions for [if|while|...] 2018-09-24 10:02:40 +02:00
virqemu.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virrandom.c xenapi: remove driver 2019-09-03 15:37:54 -06:00
virrandom.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virresctrl.c util: Remove unused virResctrlMonitorGetCacheOccupancy 2019-08-05 19:41:12 +02:00
virresctrl.h util: Remove unused virResctrlMonitorGetCacheOccupancy 2019-08-05 19:41:12 +02:00
virresctrlpriv.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virrotatingfile.c lib: Use more of VIR_STEAL_PTR() 2019-01-28 14:46:58 +01:00
virrotatingfile.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virscsi.c util: Don't include 'viralloc.h' into other header files 2019-04-10 09:12:04 +02:00
virscsi.h util: scsi: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virscsihost.c
virscsihost.h util: scsi: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virscsivhost.c util: Don't include 'viralloc.h' into other header files 2019-04-10 09:12:04 +02:00
virscsivhost.h util: scsi: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virseclabel.c
virseclabel.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virsecret.c secret: Add support for usage type vTPM, extend schema and test case 2019-07-26 09:59:27 +01:00
virsecret.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virsocketaddr.c util: fix byte order of port in virSocketAddrResolveService 2019-09-17 10:35:50 +01:00
virsocketaddr.h util: add API for resolving socket service names 2019-07-11 14:13:03 +01:00
virstorageencryption.c Require a semicolon for VIR_ENUM_IMPL calls 2019-02-03 17:46:29 -05:00
virstorageencryption.h util: storage: use #pragma once in headers 2019-06-19 17:12:31 +02:00
virstoragefile.c util: storagefile: Flag backing store strings with authentication 2019-08-26 13:49:17 +02:00
virstoragefile.h util: storagefile: Modify arguments of virStorageSourceNewFromBackingAbsolue 2019-08-26 13:49:17 +02:00
virstoragefilebackend.c Fix names for abs_top_{src,build}dir variables 2019-03-14 10:05:28 +01:00
virstoragefilebackend.h util: storage: use #pragma once in headers 2019-06-19 17:12:31 +02:00
virstring.c virStrncpy: fix to successfully copy empty string 2019-09-18 09:25:17 +03:00
virstring.h util: make string functions abort on OOM 2019-09-13 10:05:17 +01:00
virsysinfo.c build: bump min required gcc to 4.8 2019-08-07 14:26:12 +01:00
virsysinfo.h util: sysinfo: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virsysinfopriv.h util: sysinfo: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virsystemd.c src: honour the RUNSTATEDIR variable in all code 2019-08-27 10:23:13 +01:00
virsystemd.h rpc: make virNetDaemonCallInhibit a no-op with no logind 2019-08-14 16:22:13 +02:00
virsystemdpriv.h util: cache the result of whether logind is available 2019-08-14 16:22:13 +02:00
virthread.c util: gettid() is Linux-specific 2017-12-05 11:28:19 +01:00
virthread.h util: thread: use #pragma once in headers 2019-06-19 17:12:31 +02:00
virthreadjob.c Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
virthreadjob.h util: thread: use #pragma once in headers 2019-06-19 17:12:31 +02:00
virthreadpool.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
virthreadpool.h util: thread: use #pragma once in headers 2019-06-19 17:12:31 +02:00
virtime.c util: Fix uninitalized variable to avoid garbage value. 2019-07-18 11:31:19 +02:00
virtime.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virtpm.c tpm: Use fd to pass password to swtpm_setup and swtpm 2019-07-26 10:30:58 +01:00
virtpm.h tpm: Use fd to pass password to swtpm_setup and swtpm 2019-07-26 10:30:58 +01:00
virtypedparam.c remote: Check for limits when encoding typed params 2019-08-28 11:17:16 +02:00
virtypedparam.h remote: Check for limits when encoding typed params 2019-08-28 11:17:16 +02:00
viruri.c build: bump min libxml2 to 2.9.1 2019-08-09 17:21:42 +01:00
viruri.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virusb.c util: Don't include 'viralloc.h' into other header files 2019-04-10 09:12:04 +02:00
virusb.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virutil.c util: get rid of virGetEnv{Allow,Block}SUID functions 2019-08-07 16:54:02 +01:00
virutil.h util: get rid of virGetEnv{Allow,Block}SUID functions 2019-08-07 16:54:02 +01:00
viruuid.c virUUIDFormat: s/VIR_UUID_RAW_LEN/VIR_UUID_BUFLEN/ in comment 2019-08-22 10:34:42 +02:00
viruuid.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virvhba.c
virvhba.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virvsock.c util: create virvsock.c 2018-05-29 15:42:03 +02:00
virvsock.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virxdrdefs.h util: misc: use #pragma once in headers 2019-06-19 17:12:33 +02:00
virxml.c xml: namespaces: use uri instead of href 2019-08-21 11:59:33 +02:00
virxml.h xml: namespaces: use uri instead of href 2019-08-21 11:59:33 +02:00