FVWM: Two small bugs in fvwm-2.0.42

From: <pieter_at_wfw.wtb.tue.nl>
Date: Wed, 17 Apr 1996 10:36:55 +0200 (MET DST)

Hi,

I've found two small bugs in fvwm-2.0.42.

1. In Fvwm.tmpl the variable CFLAGS is set to the value of FvwmCompilerFlags
   if the latter has been defined. This overwrites the old value which
   included $(ALLDEFINES) and thus removes any -I and -D switches to the
   compiler. Using CCOPTIONS instead of CFLAGS seems more appropriate to me.

2. SunOS 4.1.3 doesn't have a strerror() function (called in builtins.c), at
   least not the machine I tried. So linking fvwm failed. It does however
   have an array sys_errlist that contains the system error messages. The
   following patch fixes the problem.

*** builtins.c.~1~ Wed Apr 10 19:38:25 1996
--- builtins.c Wed Apr 17 08:31:02 1996
***************
*** 663,669 ****
--- 663,675 ----
    {
      if (execl(exec_shell_name, exec_shell_name, "-c", cmd, NULL)==-1)
      {
+ #if defined __sun__ && !defined SYSV
+ extern char *sys_errlist[];
+
+ fvwm_msg(ERR,"exec_function","execl failed (%s)",sys_errlist[errno]);
+ #else
        fvwm_msg(ERR,"exec_function","execl failed (%s)",strerror(errno));
+ #endif
        exit(100);
      }
    }


Pieter

--
Pieter Vosbeek                                    E-mail: pieter_at_wfw.wtb.tue.nl
Department of Mechanical Engineering                    Phone: +31 40 247 28 27
Eindhoven University of Technology                        Fax: +31 40 244 73 55
P.O. Box 513, 5600 MB Eindhoven, The Netherlands         Home: +31 77 472 12 02
--
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 Wed Apr 17 1996 - 03:31:08 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:58 BST