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
This commit is contained in:
parent
9ab26a65bb
commit
145dedcde5
@ -28,10 +28,14 @@ Created 10/21/1995 Heikki Tuuri
|
||||
#define POSIX_ASYNC_IO
|
||||
#endif
|
||||
|
||||
#ifndef S_IRWXU
|
||||
#define S_IRWXU 00700
|
||||
#define S_IRWXG 00070
|
||||
#define S_IRWXO 00007
|
||||
#ifndef S_IRUSR
|
||||
#define
|
||||
#define S_IRUSR 00400
|
||||
#define S_IWUSR 00200
|
||||
#define S_IRGRP 00040
|
||||
#define S_IWGRP 00020
|
||||
#define S_IROTH 00004
|
||||
#define S_IWOTH 00002
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -316,11 +316,8 @@ try_again:
|
||||
UT_NOT_USED(purpose);
|
||||
|
||||
if (create_mode == OS_FILE_CREATE) {
|
||||
#ifndef S_IRWXU
|
||||
file = open(name, create_flag);
|
||||
#else
|
||||
file = open(name, create_flag, S_IRWXU | S_IRWXG | S_IRWXO);
|
||||
#endif
|
||||
file = open(name, create_flag, S_IRUSR | S_IRGRP | S_IROTH
|
||||
| S_IWUSR | S_IWGRP | S_IWOTH);
|
||||
} else {
|
||||
file = open(name, create_flag);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user