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" |
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; |