Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
92352495
Commit
92352495
authored
Dec 08, 2009
by
Paul Chitescu
Committed by
Alexandre Julliard
Dec 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Only check if permission bits changed before calling fchmod().
parent
d1e592ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
change.c
server/change.c
+1
-1
file.c
server/file.c
+1
-1
No files found.
server/change.c
View file @
92352495
...
...
@@ -376,7 +376,7 @@ static int dir_set_sd( struct object *obj, const struct security_descriptor *sd,
mode
=
st
.
st_mode
&
(
S_ISUID
|
S_ISGID
|
S_ISVTX
|
S_IRWXG
);
mode
|=
sd_to_mode
(
sd
,
owner
);
if
(
st
.
st_mode
!=
mode
&&
fchmod
(
unix_fd
,
mode
)
==
-
1
)
if
(
((
st
.
st_mode
^
mode
)
&
(
S_IRWXU
|
S_IRWXG
|
S_IRWXO
))
&&
fchmod
(
unix_fd
,
mode
)
==
-
1
)
{
file_set_error
();
return
0
;
...
...
server/file.c
View file @
92352495
...
...
@@ -560,7 +560,7 @@ static int file_set_sd( struct object *obj, const struct security_descriptor *sd
mode
=
st
.
st_mode
&
(
S_ISUID
|
S_ISGID
|
S_ISVTX
|
S_IRWXG
);
mode
|=
sd_to_mode
(
sd
,
owner
);
if
(
st
.
st_mode
!=
mode
&&
fchmod
(
unix_fd
,
mode
)
==
-
1
)
if
(
((
st
.
st_mode
^
mode
)
&
(
S_IRWXU
|
S_IRWXG
|
S_IRWXO
))
&&
fchmod
(
unix_fd
,
mode
)
==
-
1
)
{
file_set_error
();
return
0
;
...
...
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