X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/agedu/blobdiff_plain/56cae6e16d22dfba1aafe91dc3465a684d808124..cc7db507cc53258e23c148c690c9e450214f93ac:/agedu.c diff --git a/agedu.c b/agedu.c index 533dc4c..76e884c 100644 --- 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));