]> git.ipfire.org Git - thirdparty/chrony.git/commit
util: switch create_dir() from chown() to lchown()
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 26 Aug 2025 06:38:07 +0000 (08:38 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 26 Aug 2025 10:32:33 +0000 (12:32 +0200)
commit830c8bb18ada89abc3851bec552ce08913348ec0
tree94c527d24d2c636e9ceb548497c85da7700456c4
parent028944299868615fdf24f89298745e910c231f4a
util: switch create_dir() from chown() to lchown()

Use lchown(), the safer variant of chown() that does not follow
symlinks, when changing the ownership of a created directory (logdir,
dumpdir, ntsdumpdir, and the directory of bindcmdaddress) to the chrony
user.
util.c