m4-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changes to m4/modules/m4.c,v


From: Eric Blake
Subject: Changes to m4/modules/m4.c,v
Date: Fri, 15 Sep 2006 03:37:55 +0000

CVSROOT:        /sources/m4
Module name:    m4
Changes by:     Eric Blake <ericb>      06/09/15 03:37:54

Index: modules/m4.c
===================================================================
RCS file: /sources/m4/m4/modules/m4.c,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -b -r1.69 -r1.70
--- modules/m4.c        7 Sep 2006 23:53:04 -0000       1.69
+++ modules/m4.c        15 Sep 2006 03:37:54 -0000      1.70
@@ -495,6 +495,12 @@
 
 M4BUILTIN_HANDLER (syscmd)
 {
+   if (m4_get_safer_opt (context))
+   {
+     m4_error (context, 0, 0, _("%s: disabled by --safer"), M4ARG (0));
+     return;
+   }
+
   /* Optimize the empty command.  */
   if (*M4ARG (1) == '\0')
     {
@@ -674,6 +680,12 @@
 {
   int fd;
 
+  if (m4_get_safer_opt (context))
+    {
+      m4_error (context, 0, 0, _("%s: disabled by --safer"), M4ARG (0));
+      return;
+    }
+
   errno = 0;
   if ((fd = mkstemp (M4ARG(1))) < 0)
     {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]