at 18.03-beta 12 lines 491 B view raw
1diff -Naur pommed-1.39-orig/pommed/cd_eject.c pommed-1.39/pommed/cd_eject.c 2--- pommed-1.39-orig/pommed/cd_eject.c 2011-06-02 05:24:05.000000000 -0400 3+++ pommed-1.39/pommed/cd_eject.c 2012-03-20 14:25:33.397712520 -0400 4@@ -100,7 +100,7 @@ 5 for (fd = 3; fd < max_fd; fd++) 6 close(fd); 7 8- execve("/usr/bin/eject", eject_argv, eject_envp); 9+ execvpe("eject", eject_argv, eject_envp); 10 11 logmsg(LOG_ERR, "Could not execute eject: %s", strerror(errno)); 12 exit(1);