Systemd/src/nspawn
Zbigniew Jędrzejewski-Szmek be32732168 basic/set: let set_put_strdup() create the set with string hash ops
If we're using a set with _put_strdup(), most of the time we want to use
string hash ops on the set, and free the strings when done. This defines
the appropriate a new string_hash_ops_free structure to automatically free
the keys when removing the set, and makes set_put_strdup() and set_put_strdupv()
instantiate the set with those hash ops.

hashmap_put_strdup() was already doing something similar.

(It is OK to instantiate the set earlier, possibly with a different hash ops
structure. set_put_strdup() will then use the existing set. It is also OK
to call set_free_free() instead of set_free() on a set with
string_hash_ops_free, the effect is the same, we're just overriding the
override of the cleanup function.)

No functional change intended.
2020-05-06 16:54:06 +02:00
..
meson.build
nspawn-cgroup.c basic/set: let set_put_strdup() create the set with string hash ops 2020-05-06 16:54:06 +02:00
nspawn-cgroup.h
nspawn-def.h
nspawn-expose-ports.c nspawn: some minor modernizations 2020-04-23 07:59:26 +02:00
nspawn-expose-ports.h
nspawn-gperf.gperf
nspawn-mount.c nspawn: be more careful with creating/chowning directories to overmount 2020-04-28 19:40:46 +02:00
nspawn-mount.h nspawn: be more careful with creating/chowning directories to overmount 2020-04-28 19:40:46 +02:00
nspawn-network.c Merge pull request #14381 from keszybz/ifindex-cleanup 2020-01-13 17:57:59 +01:00
nspawn-network.h nspawn: Move --network-interface interfaces back to the host. 2020-01-02 14:13:03 +01:00
nspawn-oci.c tree-wide: fix spelling errors 2020-04-21 23:21:08 +02:00
nspawn-oci.h
nspawn-patch-uid.c *: convert amenable fdopendir() calls to take_fdopendir() 2020-03-31 06:48:03 -07:00
nspawn-patch-uid.h
nspawn-register.c
nspawn-register.h
nspawn-seccomp.c nspawn: log syscalls we cannot add at debug level 2019-11-22 10:23:32 +01:00
nspawn-seccomp.h
nspawn-settings.c nspawn: beef up --resolve-conf= modes 2020-04-22 19:38:04 +02:00
nspawn-settings.h nspawn: beef up --resolve-conf= modes 2020-04-22 19:38:04 +02:00
nspawn-setuid.c *: convert amenable fdopen calls to take_fdopen 2020-03-31 06:48:03 -07:00
nspawn-setuid.h
nspawn-stub-pid1.c
nspawn-stub-pid1.h
nspawn.c nspawn: mount custom paths before writing to /etc 2020-05-05 09:02:57 +02:00
test-nspawn-tables.c
test-patch-uid.c