]> git.ipfire.org Git - thirdparty/systemd.git/commit
Make fopen_temporary and fopen_temporary_label unlocked
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 4 Apr 2019 09:02:11 +0000 (11:02 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 12 Apr 2019 09:44:56 +0000 (11:44 +0200)
commit41f6e627d7cfdf1ea50d5adbd7e118589dbcf8db
tree979f9a42211a4abbad46950b6e069d3f109f68de
parentfdeea3f4f1c0f78f1014582135d047265098fb82
Make fopen_temporary and fopen_temporary_label unlocked

This is partially a refactoring, but also makes many more places use
unlocked operations implicitly, i.e. all users of fopen_temporary().
AFAICT, the uses are always for short-lived files which are not shared
externally, and are just used within the same context. Locking is not
necessary.
21 files changed:
coccinelle/fopen-unlocked.cocci
src/basic/cgroup-util.c
src/basic/env-file.c
src/basic/fileio.c
src/basic/mountpoint-util.c
src/basic/process-util.c
src/basic/tmpfile-util.c
src/core/dbus-service.c
src/fstab-generator/fstab-generator.c
src/libsystemd-network/sd-dhcp-lease.c
src/locale/keymap-util.c
src/login/logind-seat.c
src/login/logind-session.c
src/login/logind-user.c
src/machine/machine.c
src/network/networkd-link.c
src/network/networkd-manager.c
src/resolve/resolved-link.c
src/resolve/resolved-resolv-conf.c
src/shared/generator.c
src/shared/mount-util.c