chiark / gitweb /
udev: fix path for database names on 'change' event
authorRobert Milasan <rmilasan@suse.com>
Sat, 13 Sep 2014 13:18:37 +0000 (15:18 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Thu, 18 Sep 2014 13:28:07 +0000 (15:28 +0200)
commit572016d1c2c5a679ea3ac95ff15ce9f3508020f3
tree2f6ef6f531cd34d48e78f9a56fdbed527c64ae1c
parentc2fa048c4a70c8386c6d8fe939e5ea9edecf1e98
udev: fix path for database names on 'change' event

If a device does not have a major/minor number attached, we use different
database names than if it does. On "change" events, we didn't copy the
devnum over, therefore, we used different paths than on 'add' or 'remove'
events (where devnum was properly copied).

Fix this by always copying the devnum into the udev-device.

(David: added commit-log from email)
src/libudev/libudev-device.c
src/libudev/libudev-private.h
src/udev/udev-event.c