~mdw
/
sgt
/
agedu
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
56cae6e
)
Why on earth was I creating the data file with x permission? Silly
author
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 6 Nov 2008 18:49:04 +0000
(18:49 +0000)
committer
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 6 Nov 2008 18:49:04 +0000
(18:49 +0000)
idea. Get rid of it.
git-svn-id: svn://svn.tartarus.org/sgt/agedu@8285
cda61777
-01e9-0310-a592-
d414129be87e
agedu.c
patch
|
blob
|
blame
|
history
diff --git
a/agedu.c
b/agedu.c
index
533dc4c
..
76e884c
100644
(file)
--- a/
agedu.c
+++ b/
agedu.c
@@
-887,7
+887,8
@@
int main(int argc, char **argv)
/*
* Prepare to write out the index file.
*/
- fd = open(filename, O_RDWR | O_TRUNC | O_CREAT, S_IRWXU);
+ fd = open(filename, O_RDWR | O_TRUNC | O_CREAT,
+ S_IRUSR | S_IWUSR);
if (fd < 0) {
fprintf(stderr, "%s: %s: open: %s\n", PNAME, filename,
strerror(errno));