chiark / gitweb /
udevd: create /dev/.udev/rules.d/ before watching it wit inotify
authorKay Sievers <kay.sievers@vrfy.org>
Wed, 4 Nov 2009 16:06:52 +0000 (17:06 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Wed, 4 Nov 2009 16:06:52 +0000 (17:06 +0100)
commit081be002eae9bc7fc03dbfd7b99b4d28a7c98f9d
treef32f2f89eabac315c462c669ea4e5935103b4ec6
parent66094a4a7fc1d303e80785d586800eae9841502b
udevd: create /dev/.udev/rules.d/ before watching it wit inotify

This should also address:

On Tue, Nov 3, 2009 at 16:21, Marco d'Itri <md@linux.it> wrote:
> udev_rules_new() in udev/udev-rules.c unconditionally creates the
> directory.
> This is a problem because the function is called also by e.g. udevadm
> test, and creating /dev/.udev/ when it does not exist is an unacceptable
> side effect which will break everything else that checks for its
> existence to know if udev is running.
udev/udev-rules.c
udev/udevd.c