]> git.ipfire.org Git - thirdparty/systemd.git/commit
socket: make sure we warn loudly about symlinks we can't create
authorLennart Poettering <lennart@poettering.net>
Tue, 26 Sep 2017 16:27:09 +0000 (18:27 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 27 Sep 2017 15:53:00 +0000 (17:53 +0200)
commit95f7fbbf887955bdbb790d61091487b48d51de9d
treebb4559fa389eab67cbb5f4bc765ab56e1483145b
parent77b79723a6595728dfd48940754bef08150d48e0
socket: make sure we warn loudly about symlinks we can't create

Note that this change does not make symlink creation failing fatal. I am
not entirely sure about whether it should be, but I am leaning towards
not making it fatal for two reasons: symlinks like this tend to be a
compatibility feature, and hence unlikely to be essential for operation,
in a way this breaks compatibility, and while doing that is not off the
table, we should probably avoid it if we are not entirely sure it's a
good thing.

Note that this also changes plain symlink() to symlink_idempotent() so
that existing symlinks with the right destination are nothing we log
about.

Fixes: #6920
src/core/socket.c