From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tobias Klauser Date: Sat, 09 Jun 2007 10:48:47 +0000 Subject: [PATCH] Fix typo in udev_utils_run.c Message-Id: <20070609104847.GA928@distanz.ch> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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