projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sys-file-writer: Fix comment.
[pspp]
/
src
/
data
/
sys-file-writer.c
diff --git
a/src/data/sys-file-writer.c
b/src/data/sys-file-writer.c
index 729213bf6826337ba2a73c2c6ae6ce7ed678d7da..a90d4e174eb1b107968924fd341476e2b2572f4a 100644
(file)
--- a/
src/data/sys-file-writer.c
+++ b/
src/data/sys-file-writer.c
@@
-159,8
+159,7
@@
sfm_writer_default_options (void)
}
/* Opens the system file designated by file handle FH for writing
}
/* Opens the system file designated by file handle FH for writing
- cases from dictionary D according to the given OPTS. If
- COMPRESS is nonzero, the system file will be compressed.
+ cases from dictionary D according to the given OPTS.
No reference to D is retained, so it may be modified or
destroyed at will after this function returns. D is not
No reference to D is retained, so it may be modified or
destroyed at will after this function returns. D is not
@@
-209,9
+208,9
@@
sfm_open_writer (struct file_handle *fh, struct dictionary *d,
goto error;
/* Create the file on disk. */
goto error;
/* Create the file on disk. */
- mode =
S_IRUSR | S_IRGRP | S_IROTH
;
+ mode =
0444
;
if (opts.create_writeable)
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)
w->rf = replace_file_start (fh_get_file_name (fh), "wb", mode,
&w->file, NULL);
if (w->rf == NULL)