]> git.ipfire.org Git - thirdparty/systemd.git/commit
udev: fix usage of udev_device_new_from_stat_rdev() in journalctl
authorFilipe Brandenburger <filbranden@google.com>
Thu, 7 Jun 2018 20:07:56 +0000 (13:07 -0700)
committerLennart Poettering <lennart@poettering.net>
Thu, 7 Jun 2018 22:45:22 +0000 (00:45 +0200)
commitfffafb2b5e521476bdd911ed0cc64909cfc0cf5f
tree4fee765908308f1ff040ee1130bb56e1c6c114ef
parentad119a3293b9ab44277bb30562ff008930bedfe2
udev: fix usage of udev_device_new_from_stat_rdev() in journalctl

The refactor in #9200 inadvertently dropped the variable assignment to
traverse the device and its hierarchy in add_matches_for_device().

This was uncovered by Coverity (CID #1393310).

Fix that by restoring the assignment.

Tested: `journalctl /dev/sda` now filters journalctl output again.
src/journal/journalctl.c