/[pspp]/pspp/src/permissions.c
ViewVC logotype

Diff of /pspp/src/permissions.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by jmd, Tue Nov 16 05:25:48 2004 UTC revision 1.2 by jmd, Mon Jan 10 06:50:45 2005 UTC
# Line 25  Line 25 
25  #include <unistd.h>  #include <unistd.h>
26  #include <errno.h>  #include <errno.h>
27    
28    #include "settings.h"
29  #include "command.h"  #include "command.h"
30  #include "error.h"  #include "error.h"
31  #include "lexer.h"  #include "lexer.h"
# Line 95  change_permissions(const char *filename, Line 96  change_permissions(const char *filename,
96    struct stat buf;    struct stat buf;
97    mode_t mode;    mode_t mode;
98    
99      if ( safer_mode() )
100        {
101          msg (SE, _("This command not allowed when the SAFER option is set."));
102          return CMD_FAILURE;
103        }
104    
105    
106    if ( -1 == stat(filename, &buf) )    if ( -1 == stat(filename, &buf) )
107      {      {
108        const int errnum = errno;        const int errnum = errno;

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26