diff options
author | Robert Milasan <rmilasan@suse.com> | 2014-09-13 15:18:37 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2014-09-18 15:28:07 +0200 |
commit | 572016d1c2c5a679ea3ac95ff15ce9f3508020f3 (patch) | |
tree | 2f6ef6f531cd34d48e78f9a56fdbed527c64ae1c /src/libudev/libudev-device.c | |
parent | c2fa048c4a70c8386c6d8fe939e5ea9edecf1e98 (diff) |
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)
Diffstat (limited to 'src/libudev/libudev-device.c')
-rw-r--r-- | src/libudev/libudev-device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libudev/libudev-device.c b/src/libudev/libudev-device.c index d61a2ad8f4..2699374072 100644 --- a/src/libudev/libudev-device.c +++ b/src/libudev/libudev-device.c @@ -161,7 +161,7 @@ _public_ dev_t udev_device_get_devnum(struct udev_device *udev_device) return udev_device->devnum; } -static int udev_device_set_devnum(struct udev_device *udev_device, dev_t devnum) +int udev_device_set_devnum(struct udev_device *udev_device, dev_t devnum) { char num[32]; |