From cc7db507cc53258e23c148c690c9e450214f93ac Mon Sep 17 00:00:00 2001 From: simon Date: Thu, 6 Nov 2008 18:49:04 +0000 Subject: [PATCH] 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 --- agedu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); -- 2.11.0