]> git.ipfire.org Git - thirdparty/systemd.git/commit
Add some handling to remaining unlinkat calls
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 16 Feb 2018 06:00:22 +0000 (07:00 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 19 Feb 2018 14:00:00 +0000 (15:00 +0100)
commitcb51ee7a6e537da5706b4eb4a6d673ebe9654ceb
treeab4f7be9a4bccf1afea8705e018a424afeee1389
parentaf229d7a5be768a49a7f0d1028d878a71b797bad
Add some handling to remaining unlinkat calls

Coverity now started warning about this ("Calling unlinkat without checking
return value (as is done elsewhere 12 out of 15 times).", and it is right:
most of the time we should at list print a log message so people can figure
out something is wrong when this happens.

v2:
- use warning level in journald too (this is unlikely to happen ever, so it
  should be safe to something that is visible by default).
src/journal/journald-stream.c
src/login/logind.c
src/udev/udev-watch.c