Reworked settings so as to use one large struct instead of lots of static
[pspp-builds.git] / src / language / utilities / permissions.c
index 100317bb9b30ac24d1016b41b0c6d7ef180215d7..fec6b4fc3034ca882d66394b94c6d615ae4c369a 100644 (file)
@@ -88,12 +88,12 @@ cmd_permissions (struct lexer *lexer, struct dataset *ds UNUSED)
 
 
 int
-change_permissions(const char *file_name, enum PER per)
+change_permissions (const char *file_name, enum PER per)
 {
   struct stat buf;
   mode_t mode;
 
-  if (get_safer_mode ())
+  if (settings_get_safer_mode ())
     {
       msg (SE, _("This command not allowed when the SAFER option is set."));
       return CMD_FAILURE;