Replace S_I[RWX]{USR,GRP,OTH} macros by their values.
[pspp] / src / data / sys-file-writer.c
index 729213bf6826337ba2a73c2c6ae6ce7ed678d7da..fcb40d379660934ac187e9e369a76ff1a0341f15 100644 (file)
@@ -209,9 +209,9 @@ sfm_open_writer (struct file_handle *fh, struct dictionary *d,
     goto error;
 
   /* Create the file on disk. */
-  mode = S_IRUSR | S_IRGRP | S_IROTH;
+  mode = 0444;
   if (opts.create_writeable)
-    mode |= S_IWUSR | S_IWGRP | S_IWOTH;
+    mode |= 0222;
   w->rf = replace_file_start (fh_get_file_name (fh), "wb", mode,
                               &w->file, NULL);
   if (w->rf == NULL)