pspp-cvs
[Top][All Lists]
Advanced

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

[Pspp-cvs] Changes to pspp/src/permissions.c


From: John Darrington
Subject: [Pspp-cvs] Changes to pspp/src/permissions.c
Date: Mon, 10 Jan 2005 02:24:58 -0500

Index: pspp/src/permissions.c
diff -u pspp/src/permissions.c:1.1 pspp/src/permissions.c:1.2
--- pspp/src/permissions.c:1.1  Tue Nov 16 05:25:48 2004
+++ pspp/src/permissions.c      Mon Jan 10 06:50:45 2005
@@ -25,6 +25,7 @@
 #include <unistd.h>
 #include <errno.h>
 
+#include "settings.h"
 #include "command.h"
 #include "error.h"
 #include "lexer.h"
@@ -95,6 +96,13 @@
   struct stat buf;
   mode_t mode;
 
+  if ( safer_mode() )
+    {
+      msg (SE, _("This command not allowed when the SAFER option is set."));
+      return CMD_FAILURE;
+    }
+
+
   if ( -1 == stat(filename, &buf) ) 
     {
       const int errnum = errno;




reply via email to

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