Skip to contentSkip to conversation

Fix typo in udev_utils_run.c

PATCH In review Tobias Klauser 2 participants 2 messages Jun 9, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix typo in udev_utils_run.c

Hi Kay,

Commit 8246d00d886fe0968bac065efbc455019483fe4e introduced a erroneous check for errno being ENOTDIR after exec. The patch below fixes the test.

Cheers, Tobias

udev_utils_run.c +1 -1
index 8137ec1..e855342 100644
@@ -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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw
Quoted 3 lines · Tobias Klauser

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel