From: simon Date: Thu, 6 Nov 2008 18:49:04 +0000 (+0000) Subject: Why on earth was I creating the data file with x permission? Silly X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/agedu/commitdiff_plain/cc7db507cc53258e23c148c690c9e450214f93ac Why on earth was I creating the data file with x permission? Silly idea. Get rid of it. git-svn-id: svn://svn.tartarus.org/sgt/agedu@8285 cda61777-01e9-0310-a592-d414129be87e --- 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));