summaryrefslogtreecommitdiff
path: root/src/test/test-acl-util.c
Commit message (Collapse)AuthorAgeFilesLines
* fileio: simplify mkostemp_safe() (#4090)Topi Miettinen2016-09-131-1/+1
| | | | | | According to its manual page, flags given to mkostemp(3) shouldn't include O_RDWR, O_CREAT or O_EXCL flags as these are always included. Beyond those, the only flag that all callers (except a few tests where it probably doesn't matter) use is O_CLOEXEC, so set that unconditionally.
* tree-wide: remove Emacs lines from all filesDaniel Mack2016-02-101-2/+0
| | | | | This should be handled fine now by .dir-locals.el, so need to carry that stuff in every file.
* test-acl-util: fix two issues from reviewZbigniew Jędrzejewski-Szmek2015-11-301-1/+3
| | | | https://github.com/systemd/systemd/pull/2063
* test-acl-util: add new testZbigniew Jędrzejewski-Szmek2015-11-281-0/+85
For now, only add_acls_for_user is tested. When run under root, it actually sets the acls. When run under non-root, it sets the acls for the user, which does nothing, but at least calls the functions.