Commit 145dedcd authored by unknown's avatar unknown

os0file.c Removed execute rights from created files

os0file.h	Added defines for S_IRUSR etc.


innobase/include/os0file.h:
  Added defines fro S_IRUSR etc.
innobase/os/os0file.c:
  Removed execute rights from created files
parent 9ab26a65
...@@ -28,10 +28,14 @@ Created 10/21/1995 Heikki Tuuri ...@@ -28,10 +28,14 @@ Created 10/21/1995 Heikki Tuuri
#define POSIX_ASYNC_IO #define POSIX_ASYNC_IO
#endif #endif
#ifndef S_IRWXU #ifndef S_IRUSR
#define S_IRWXU 00700 #define
#define S_IRWXG 00070 #define S_IRUSR 00400
#define S_IRWXO 00007 #define S_IWUSR 00200
#define S_IRGRP 00040
#define S_IWGRP 00020
#define S_IROTH 00004
#define S_IWOTH 00002
#endif #endif
#endif #endif
......
...@@ -316,11 +316,8 @@ try_again: ...@@ -316,11 +316,8 @@ try_again:
UT_NOT_USED(purpose); UT_NOT_USED(purpose);
if (create_mode == OS_FILE_CREATE) { if (create_mode == OS_FILE_CREATE) {
#ifndef S_IRWXU file = open(name, create_flag, S_IRUSR | S_IRGRP | S_IROTH
file = open(name, create_flag); | S_IWUSR | S_IWGRP | S_IWOTH);
#else
file = open(name, create_flag, S_IRWXU | S_IRWXG | S_IRWXO);
#endif
} else { } else {
file = open(name, create_flag); file = open(name, create_flag);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment