projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added files in src/math
[pspp]
/
src
/
permissions.c
diff --git
a/src/permissions.c
b/src/permissions.c
index 1c3ee1fc1c2adf61328fe00f074cd85d39315f9d..0d2369216469e2fe7cecff802884316f2d468350 100644
(file)
--- a/
src/permissions.c
+++ b/
src/permissions.c
@@
-24,15
+24,16
@@
#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>
#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>
-
#include "settings.h"
#include "command.h"
#include "error.h"
#include "lexer.h"
#include "misc.h"
#include "settings.h"
#include "command.h"
#include "error.h"
#include "lexer.h"
#include "misc.h"
+#include "stat-macros.h"
#include "str.h"
#include "str.h"
-
+#include "gettext.h"
+#define _(msgid) gettext (msgid)
enum PER {PER_RO, PER_RW};
enum PER {PER_RO, PER_RW};
@@
-96,7
+97,7
@@
change_permissions(const char *filename, enum PER per)
struct stat buf;
mode_t mode;
struct stat buf;
mode_t mode;
- if (
safer_mode()
)
+ if (
get_safer_mode ()
)
{
msg (SE, _("This command not allowed when the SAFER option is set."));
return CMD_FAILURE;
{
msg (SE, _("This command not allowed when the SAFER option is set."));
return CMD_FAILURE;