1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-31 07:51:08 +03:00

fix typo in udev_utils_run.c

This commit is contained in:
Tobias Klauser 2007-06-09 19:18:46 +02:00 committed by Kay Sievers
parent 1fdce2f39d
commit 9b2e2d4a8a

View File

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