udevadm: do not ignroe error caused by unpriviledged user invoking the command
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 29 Sep 2020 04:44:28 +0000 (13:44 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 8 Dec 2020 13:39:08 +0000 (14:39 +0100)
commitc29cefa0c5523921fce9f82457660de7c8ca2042
tree033c2a7e3f4c338cf966f3d2993776e984f02f70
parentf4a3a1cf2145e3cc594f2120a56a19c5a43c98d9
udevadm: do not ignroe error caused by unpriviledged user invoking the command

This effectively reverts commit 67acde4869a9505f9721e31fa5167c82445e0e12.

After commits 569ad251adde02dc0915758fe027e0346e50738a and
67acde4869a9505f9721e31fa5167c82445e0e12, -EACCES errors are ignored,
and thus 'udevadm trigger' succeeds even when it is invoked by non-root
users. Moreover, on -EACCES error, log messages are shown in debug
level, so usually we see no message, and users are easily confused
why uevents for devices are not triggered.

(cherry picked from commit 88da55e28b467999da005591d3252a98f4436522)
src/udev/udevadm-trigger.c