From mboxrd@z Thu Jan 1 00:00:00 1970 From: md@Linux.IT (Marco d'Itri) Date: Wed, 04 Nov 2009 14:28:25 +0000 Subject: Re: mkdir of /etc/.udev/rules.d/ Message-Id: <20091104142825.GA24264@bongo.bofh.it> List-Id: References: <20091103152119.GA14319@bongo.bofh.it> In-Reply-To: <20091103152119.GA14319@bongo.bofh.it> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Nov 04, Kay Sievers 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. > > Why is this needed? > No specific reason, I remember. It could move into the daemon, before > the inotify watch. Why create it at all? (I suspect that this was done to suppress a warning about the missing directory, but then I'd rather do it properly with a flag...) -- ciao, Marco