Forgive me if this has been asked before, but...
I have changed the "execl" (in exec_function() in builtins.c) to "execlp",
so that it would search $PATH instead of requiring me to specify the
entire path. I did this after upgrading to fvwm2 because many of my
menu items broke.
Is there a reason why execl is used instead of execlp?
If not, I suggest the following patch:
~John Williams
(Linux 1.2.13 / XFree86 3.1.2D)
--- builtins.old Tue Apr 16 10:31:36 1996
+++ builtins.c Tue Apr 16 10:32:00 1996
_at_@ -661,7 +661,7 @@
/* Not everyone has vfork! */
if (!(fork())) /* child process */
{
- if (execl(exec_shell_name, exec_shell_name, "-c", cmd, NULL)==-1)
+ if (execlp(exec_shell_name, exec_shell_name, "-c", cmd, NULL)==-1)
{
fvwm_msg(ERR,"exec_function","execl failed (%s)",strerror(errno));
exit(100);
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Tue Apr 16 1996 - 17:22:33 BST