From: Tobias Klauser <tklauser@distanz.ch>
To: linux-hotplug@vger.kernel.org
Subject: [PATCH] Fix typo in udev_utils_run.c
Date: Sat, 09 Jun 2007 10:48:47 +0000 [thread overview]
Message-ID: <20070609104847.GA928@distanz.ch> (raw)
Hi Kay,
Commit 8246d00d886fe0968bac065efbc455019483fe4e introduced a erroneous
check for errno being ENOTDIR after exec. The patch below fixes the
test.
Cheers, Tobias
diff --git a/udev_utils_run.c b/udev_utils_run.c
index 8137ec1..e855342 100644
--- a/udev_utils_run.c
+++ b/udev_utils_run.c
@@ -158,7 +158,7 @@ int run_program(const char *command, const char *subsystem,
close(errpipe[WRITE_END]);
}
execv(argv[0], argv);
- if ((errno = ENOENT) || (errno = ENOTDIR)) {
+ if ((errno = ENOENT) || (errno = ENOTDIR)) {
/* may be on a filesytem which is not mounted right now */
info("program '%s' not found", argv[0]);
} else {
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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
next reply other threads:[~2007-06-09 10:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-09 10:48 Tobias Klauser [this message]
2007-06-09 17:21 ` [PATCH] Fix typo in udev_utils_run.c Kay Sievers
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=20070609104847.GA928@distanz.ch \
--to=tklauser@distanz.ch \
--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).