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
f12e9a02
Commit
f12e9a02
authored
Dec 12, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegcc: Fix the file mode check.
parent
de5bbbc2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
utils.c
tools/winegcc/utils.c
+3
-6
No files found.
tools/winegcc/utils.c
View file @
f12e9a02
...
...
@@ -307,13 +307,10 @@ void spawn(const strarray* prefix, const strarray* args, int ignore_errors)
if
(
!
(
p
=
strrchr
(
argv
[
0
],
'/'
)))
p
=
argv
[
0
];
free
(
prog
);
prog
=
strmake
(
"%s/%s"
,
prefix
->
base
[
i
],
p
);
if
(
stat
(
prog
,
&
st
)
==
0
)
if
(
stat
(
prog
,
&
st
)
==
0
&&
S_ISREG
(
st
.
st_mode
)
&&
(
st
.
st_mode
&
0111
)
)
{
if
((
st
.
st_mode
&
S_IFREG
)
&&
(
st
.
st_mode
&
(
S_IXUSR
|
S_IXGRP
|
S_IXOTH
)))
{
argv
[
0
]
=
prog
;
break
;
}
argv
[
0
]
=
prog
;
break
;
}
}
}
...
...
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