chiark / gitweb /
udev: actually check for existance of ID_PATH_TAG before we use it
authorLennart Poettering <lennart@poettering.net>
Wed, 13 Jul 2011 18:06:11 +0000 (20:06 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 13 Jul 2011 18:06:11 +0000 (20:06 +0200)
src/71-seat.rules
src/logind.h

index dca5e5f2adbc1f7ed8439685ed80edad668cd8f6..7c062034e7f650ac9a26328a799ccfa8ab725722 100644 (file)
@@ -16,6 +16,6 @@ SUBSYSTEM=="usb", ATTR{bDeviceClass}=="09", TAG+="seat"
 SUBSYSTEM=="usb", ATTR{idVendor}=="2230", ATTR{idProduct}=="0001", ENV{ID_AUTOSEAT}="1"
 
 TAG=="seat", ENV{ID_PATH}=="", IMPORT{program}="path_id %p"
-TAG=="seat", ENV{ID_FOR_SEAT}=="", ENV{ID_PATH}!="", ENV{ID_FOR_SEAT}="$env{SUBSYSTEM}-$env{ID_PATH_TAG}"
+TAG=="seat", ENV{ID_FOR_SEAT}=="", ENV{ID_PATH_TAG}!="", ENV{ID_FOR_SEAT}="$env{SUBSYSTEM}-$env{ID_PATH_TAG}"
 
 LABEL="seat_end"
index d91cae38fe19006630c353c3a4e7f2134f09edb7..7f584558ae481399c0a429f708f2e20b64368700 100644 (file)
@@ -40,7 +40,6 @@
  *
  * udev:
  * drop redundant udev_device_get_is_initialized() use as soon as libudev is fixed
- * properly escape/remove : and . from seat names in udev rules
  * use device_has_tag() as soon as it is available
  * trigger based on libudev if available
  * enumerate recursively with libudev when triggering