Eina: eina_file.c replace ACCESSPERMS, which is not protable, by its value

SVN revision: 58648
This commit is contained in:
Vincent Torri 2011-04-14 05:39:09 +00:00
parent 391ed4d617
commit 644bf855f4
1 changed files with 2 additions and 2 deletions

View File

@ -718,9 +718,9 @@ eina_file_open(const char *filename, Eina_Bool shared)
directory) */
if (shared)
fd = shm_open(filename, O_RDONLY | O_CLOEXEC, ACCESSPERMS);
fd = shm_open(filename, O_RDONLY | O_CLOEXEC, S_IRWXU | S_IRWXG | S_IRWXO);
else
fd = open(filename, O_RDONLY | O_CLOEXEC, ACCESSPERMS);
fd = open(filename, O_RDONLY | O_CLOEXEC, S_IRWXU | S_IRWXG | S_IRWXO);
if (fd < 0) return NULL;