linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix typo in udev_utils_run.c
@ 2007-06-09 10:48 Tobias Klauser
  2007-06-09 17:21 ` Kay Sievers
  0 siblings, 1 reply; 2+ messages in thread
From: Tobias Klauser @ 2007-06-09 10:48 UTC (permalink / raw)
  To: linux-hotplug

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix typo in udev_utils_run.c
  2007-06-09 10:48 [PATCH] Fix typo in udev_utils_run.c Tobias Klauser
@ 2007-06-09 17:21 ` Kay Sievers
  0 siblings, 0 replies; 2+ messages in thread
From: Kay Sievers @ 2007-06-09 17:21 UTC (permalink / raw)
  To: linux-hotplug

On 6/9/07, Tobias Klauser <tklauser@distanz.ch> wrote:
> Commit 8246d00d886fe0968bac065efbc455019483fe4e introduced a erroneous
> check for errno being ENOTDIR after exec. The patch below fixes the
> test.

Oh, nice bug. Applied.

Thanks,
Kay

-------------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-06-09 17:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-09 10:48 [PATCH] Fix typo in udev_utils_run.c Tobias Klauser
2007-06-09 17:21 ` Kay Sievers

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).