linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: udev  silently ignores bad config file names
Date: Fri, 04 Jun 2004 21:17:41 +0000	[thread overview]
Message-ID: <20040604211741.GC13651@kroah.com> (raw)

On Sat, May 22, 2004 at 11:16:45PM +0200, Erik S?e S?rensen wrote:
> Hi there.
> 
> In udev-025, bad config file names for rules and permissions are 
> silently ignored.  Worse yet: even if the permission config file name is 
> correct, the file won't be loaded if the rules file name is incorrect 
> (e.g., doesn't exist).
> 
> A crude fix is attached. It just reports that there are problems with 
> reading a certain config file; this could of course be improved a lot.
> - The nature of the error should be written.

I agree, care to change this to report which file could not be read?

> - I don't know if the error report should go to stderr, the log, or 
> both.

There is no stderr when udev is running :)
The log is all we have.

> - Finally, I'm not sure how much sense it makes that the permissions 
> file is not attempted read if reading the rules file failed..?

We should plod onward, as the user could just be relying on the default
permission and root:root ownership, as is the case for the root disk
when booting in a initrd/initramfs image.

thanks,

greg k-h


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

             reply	other threads:[~2004-06-04 21:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-04 21:17 Greg KH [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-05-22 21:16 udev silently ignores bad config file names Erik Søe Sørensen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040604211741.GC13651@kroah.com \
    --to=greg@kroah.com \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).