Systemd/udev
Alan Jenkins 11ae757850 udevd: fix termination of rule execution
LAST_RULE was broken, and I broke TK_END by making it do the same.
It used a "break" which exited the switch statement, but not the loop!

==2953== Invalid read of size 4
==2953==    at 0x4081EE: dump_token (udev-rules.c:859)
==2953==    by 0x40BADB: udev_rules_apply_to_event (udev-rules.c:1849)
==2953==    by 0x403F17: udev_event_execute_rules (udev-event.c:554)
==2953==    by 0x418626: main (test-udev.c:100)
==2953==  Address 0x55ab1f8 is 0 bytes after a block of size 80 alloc'd
==2953==    at 0x4C23082: realloc (vg_replace_malloc.c:429)
==2953==    by 0x40B13B: udev_rules_new (udev-rules.c:1670)
==2953==    by 0x418536: main (test-udev.c:84)
...

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2008-11-01 17:29:26 +01:00
..
lib kerneldoc comment fixes 2008-10-26 15:55:47 +01:00
.gitignore gitignore: move *.8 to subdirs 2008-09-29 05:03:43 +02:00
Makefile.am do not use the new work-in-progress parser rule matcher 2008-10-21 12:45:54 +02:00
test-udev.c cache uid/gid during rule parsing 2008-10-24 10:51:04 +02:00
udev-event.c write trace log to stderr 2008-10-31 16:22:55 +01:00
udev-node.c do not init string arrays, just clear first byte 2008-10-26 02:31:54 +01:00
udev-rules.c udevd: fix termination of rule execution 2008-11-01 17:29:26 +01:00
udev-selinux.c selinux_init(udev) -> udev_selinux_init(udev) 2008-10-18 19:30:42 +02:00
udev-sysdeps.h rename udev source files 2008-10-16 18:13:48 +02:00
udev-util.c handle numerical owner/group string in lookup_user/group() 2008-10-22 23:59:53 +02:00
udev.h udevd: merge exec and run queue to minimize devpath string compares 2008-10-29 17:32:13 +01:00
udev.xml ATTR{}== always fails if the attribute does not exist 2008-10-29 22:22:12 +01:00
udevadm-control.c use no_argument, required_argument, optional_argument in longopts 2008-10-02 16:49:05 +02:00
udevadm-info.c libudev: device - get_attr_value() -> get_sysattr_value() 2008-10-20 18:12:36 +02:00
udevadm-monitor.c use no_argument, required_argument, optional_argument in longopts 2008-10-02 16:49:05 +02:00
udevadm-settle.c fix uninitialized variable warnings 2008-10-24 09:37:37 +02:00
udevadm-test.c cache uid/gid during rule parsing 2008-10-24 10:51:04 +02:00
udevadm-trigger.c libudev: device - get_attr_value() -> get_sysattr_value() 2008-10-20 18:12:36 +02:00
udevadm.c selinux_init(udev) -> udev_selinux_init(udev) 2008-10-18 19:30:42 +02:00
udevadm.xml udevadm: trigger: use libudev 2008-09-30 13:43:35 +02:00
udevd.c write trace log to stderr 2008-10-31 16:22:55 +01:00
udevd.xml udevadm: add --version --help options to man page, hide them as commands 2008-09-07 14:48:33 +02:00