X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fpermissions.c;h=0d2369216469e2fe7cecff802884316f2d468350;hb=f3cf52b51e6d89e94190de22b1fa813e8d3746f7;hp=f0ea817f9416bf670586e2ffcb7f64463ae280cb;hpb=8bc8a011fa9df5b9f5aa00144c8d3478fd7b93fa;p=pspp diff --git a/src/permissions.c b/src/permissions.c index f0ea817f94..0d23692164 100644 --- a/src/permissions.c +++ b/src/permissions.c @@ -14,8 +14,8 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. */ #include #include "error.h" @@ -24,15 +24,16 @@ #include #include #include - #include "settings.h" #include "command.h" #include "error.h" #include "lexer.h" #include "misc.h" +#include "stat-macros.h" #include "str.h" - +#include "gettext.h" +#define _(msgid) gettext (msgid) enum PER {PER_RO, PER_RW}; @@ -96,7 +97,7 @@ change_permissions(const char *filename, enum PER per) 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;