]> git.ipfire.org Git - thirdparty/systemd.git/commit
journal: move the gist of server_fix_perms to acl-util.[hc]
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 28 Nov 2015 03:24:33 +0000 (22:24 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 28 Nov 2015 04:32:32 +0000 (23:32 -0500)
commit5c3bde3fa8613e09e694198862ea9038566af422
tree42871668b350263e3adabd20343e9c4e17425f82
parent564c44436cf64adc7a9eff8c17f386899194a893
journal: move the gist of server_fix_perms to acl-util.[hc]

Most of the function is moved to acl-util.c to make it possible to
add tests in subsequent commit.

Setting of the mode in server_fix_perms is removed:
- we either just created the file ourselves, and the permission be better right,
- or the file was already there, and we should not modify the permissions.

server_fix_perms is renamed to server_fix_acls to better reflect new
meaning, and made static because it is only used in one file.
src/journal/journald-server.c
src/journal/journald-server.h
src/shared/acl-util.c
src/shared/acl-util.h