From: Enlightenment S. <no-...@en...> - 2009-02-19 10:13:33
|
Log: * force open to allow read and write permission of the user when creating or reading edj files Author: caro Date: 2009-02-19 02:13:28 -0800 (Thu, 19 Feb 2009) New Revision: 39092 Modified: trunk/edje/src/bin/edje_cc_handlers.c trunk/edje/src/bin/edje_cc_parse.c Modified: trunk/edje/src/bin/edje_cc_handlers.c =================================================================== --- trunk/edje/src/bin/edje_cc_handlers.c 2009-02-19 08:15:23 UTC (rev 39091) +++ trunk/edje/src/bin/edje_cc_handlers.c 2009-02-19 10:13:28 UTC (rev 39092) @@ -823,7 +823,7 @@ di->key = parse_str(0); filename = parse_str(1); - fd = open(filename, O_RDONLY | O_BINARY); + fd = open(filename, O_RDONLY | O_BINARY, S_IRUSR | S_IWUSR); if (fd < 0) { fprintf(stderr, "%s: Error. %s:%i when opening file \"%s\": \"%s\"\n", Modified: trunk/edje/src/bin/edje_cc_parse.c =================================================================== --- trunk/edje/src/bin/edje_cc_parse.c 2009-02-19 08:15:23 UTC (rev 39091) +++ trunk/edje/src/bin/edje_cc_parse.c 2009-02-19 10:13:28 UTC (rev 39092) @@ -721,7 +721,7 @@ free(def); */ } - fd = open(file_in, O_RDONLY | O_BINARY); + fd = open(file_in, O_RDONLY | O_BINARY, S_IRUSR | S_IWUSR); if (fd < 0) { fprintf(stderr, "%s: Error. cannot open file \"%s\" for input. %s\n", |