]> git.ipfire.org Git - thirdparty/systemd.git/commit
util: rework fgetxattrat_fake() to use O_PATH
authorLennart Poettering <lennart@poettering.net>
Fri, 2 Oct 2015 09:43:19 +0000 (11:43 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 2 Oct 2015 09:44:05 +0000 (11:44 +0200)
commitdf241a67c0d5311dd15e227162d7e886541da16c
treecd26371b0353e493039e9cac32c002fe17d865ad
parente46831f0f1e2ef0a6cd333b639af1327745ccb5b
util: rework fgetxattrat_fake() to use O_PATH

That way, we don't ever open the file, thus leave the atime untouched,
and this works even when unprivileged.
src/basic/util.c
src/test/test-util.c