* force open to allow read and write permission of the user

when creating or reading edj files


SVN revision: 39092
This commit is contained in:
Vincent Torri 2009-02-19 10:13:28 +00:00
parent 16a444cb28
commit 1cd236068b
2 changed files with 2 additions and 2 deletions

View File

@ -823,7 +823,7 @@ st_data_file(void)
di->key = parse_str(0); di->key = parse_str(0);
filename = parse_str(1); 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) if (fd < 0)
{ {
fprintf(stderr, "%s: Error. %s:%i when opening file \"%s\": \"%s\"\n", fprintf(stderr, "%s: Error. %s:%i when opening file \"%s\": \"%s\"\n",

View File

@ -721,7 +721,7 @@ compile(void)
free(def); 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) if (fd < 0)
{ {
fprintf(stderr, "%s: Error. cannot open file \"%s\" for input. %s\n", fprintf(stderr, "%s: Error. cannot open file \"%s\" for input. %s\n",