diff -urpN autofs-4.1.3.orig/daemon/spawn.c autofs-4.1.3_1.exec/daemon/spawn.c --- autofs-4.1.3.orig/daemon/spawn.c Thu Jan 29 18:01:22 2004 +++ autofs-4.1.3_1.exec/daemon/spawn.c Thu Oct 7 18:05:20 2004 @@ -169,7 +169,7 @@ int spawnv(int logpri, const char *lockf retries--; } } - execv(prog, (char *const *) argv); + execvp(prog, (char *const *) argv); _exit(255); /* execv() failed */ } else { /* Careful here -- if we enable SIGCHLD yet we may not receive the diff -urpN autofs-4.1.3.orig/modules/lookup_program.c autofs-4.1.3_1.exec/modules/lookup_program.c --- autofs-4.1.3.orig/modules/lookup_program.c Thu Jan 29 18:01:22 2004 +++ autofs-4.1.3_1.exec/modules/lookup_program.c Thu Oct 7 18:05:09 2004 @@ -131,7 +131,7 @@ int lookup_mount(const char *root, const dup2(epipefd[1], STDERR_FILENO); close(pipefd[1]); close(epipefd[1]); - execl(ctxt->mapname, ctxt->mapname, name, NULL); + execlp(ctxt->mapname, ctxt->mapname, name, NULL); _exit(255); /* execl() failed */ } close(pipefd[1]); diff -urpN autofs-4.1.3.orig/modules/mount_autofs.c autofs-4.1.3_1.exec/modules/mount_autofs.c --- autofs-4.1.3.orig/modules/mount_autofs.c Sun Mar 7 14:17:54 2004 +++ autofs-4.1.3_1.exec/modules/mount_autofs.c Thu Oct 7 18:04:41 2004 @@ -154,7 +154,7 @@ int mount_mount(const char *root, const goto error; } else if (slave == 0) { /* Slave process */ - execv(PATH_AUTOMOUNT, argv); + execvp(PATH_AUTOMOUNT, argv); _exit(255); }