]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-device: don't accept /sys as a device path
authorLubomir Rintel <lkundrak@v3.sk>
Mon, 24 Jun 2019 18:38:30 +0000 (20:38 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 25 Jun 2019 01:22:18 +0000 (10:22 +0900)
commitc4f885e7e0a3e211b51b7b560674b1262f782c15
tree90746ac5baebb2f2313c4bc69cb5af0f0ce1b4bc
parentf053fc337e2cbb99d83fea156324b26a31171de0
sd-device: don't accept /sys as a device path

Because it's not a device path and (slightly) bad things happen if it
gets confused with one:

  $ udevadm info /sys/
  Assertion 'device->devpath[0] == '/'' failed at
      ../src/libsystemd/sd-device/sd-device.c:958,
      function sd_device_get_devpath(). Aborting.
  Aborted (core dumped)
src/libsystemd/sd-device/sd-device.c