]> git.ipfire.org Git - thirdparty/systemd.git/commit
[PATCH] fix udevstart badly broken in udev 031
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>
Tue, 14 Sep 2004 13:50:28 +0000 (06:50 -0700)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:37:00 +0000 (21:37 -0700)
commit29a3cead404d2043a7a3f98d1fb9c7139222b0df
tree8d051fb1f5879fdb4781a67a73866dae34314109
parent10014f7c9d67b38d10a8a12d1aa79491f5a852bd
[PATCH] fix udevstart badly broken in udev 031

On Mon, 2004-09-13 at 01:56 +0200, Marco d'Itri wrote:
> Starting from udev 031, the %-arguments passed to PROGRAMs are not
> correct when the new udevstart code is being used.
>
> KERNEL="event[0-9]*",   NAME="input/%k", PROGRAM="/etc/udev/inputdev.sh %k %n %M %m", RESULT="inputdev", MODE="0664", GROUP="video"
>
> generates this log (just echo $*):
>
> event0 0 13 64
> event0 0 13 64
> event0 0 13 64
>
> while the correct log (generated using the old shell script instead of
> udevstart) would be:
>
> event0 0 13 64
> event1 1 13 65
> event2 2 13 66

Yes, I can simulate this, please try the attached patch. I expect, that
it fixes it, cause we better not mangle the parsed config while matching
the rules.
namedev.c