Commit f78adcc2 authored by heikki@donna.mysql.fi's avatar heikki@donna.mysql.fi

os0file.c Removed execute rights from created files

os0file.h	Added defines for S_IRUSR etc.
parent 9ac867fd
...@@ -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