diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-07-21 10:35:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-21 10:35:45 +0200 |
commit | 4b61c8751135c58be043d86b9fef4c8ec7aadf18 (patch) | |
tree | 5a0686acb073a0b21620501c7fcf273b0791883c /src/core/smack-setup.c | |
parent | 52b1478414067eb9381b413408f920da7f162c6f (diff) | |
download | systemd-4b61c8751135c58be043d86b9fef4c8ec7aadf18.tar.gz |
tree-wide: fput[cs]() → fput[cs]_unlocked() wherever that makes sense (#6396)
As a follow-up for db3f45e2d2586d78f942a43e661415bc50716d11 let's do the
same for all other cases where we create a FILE* with local scope and
know that no other threads hence can have access to it.
For most cases this shouldn't change much really, but this should speed
dbus introspection and calender time formatting up a bit.
Diffstat (limited to 'src/core/smack-setup.c')
-rw-r--r-- | src/core/smack-setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/smack-setup.c b/src/core/smack-setup.c index adf2293142..9f25364335 100644 --- a/src/core/smack-setup.c +++ b/src/core/smack-setup.c @@ -246,7 +246,7 @@ static int write_netlabel_rules(const char* srcdir) { FOREACH_LINE(buf, policy, log_error_errno(errno, "Failed to read line from %s: %m", entry->d_name)) { - if (!fputs(buf, dst)) { + if (!fputs_unlocked(buf, dst)) { if (r == 0) r = -EINVAL; log_error_errno(errno, "Failed to write line to /sys/fs/smackfs/netlabel"); |