Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
f78adcc2
Commit
f78adcc2
authored
Feb 24, 2001
by
heikki@donna.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
os0file.c Removed execute rights from created files
os0file.h Added defines for S_IRUSR etc.
parent
9ac867fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
innobase/include/os0file.h
innobase/include/os0file.h
+8
-4
innobase/os/os0file.c
innobase/os/os0file.c
+2
-5
No files found.
innobase/include/os0file.h
View file @
f78adcc2
...
@@ -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
...
...
innobase/os/os0file.c
View file @
f78adcc2
...
@@ -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
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment