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
e7c3ab18
Commit
e7c3ab18
authored
Oct 04, 2004
by
Steven Edwards
Committed by
Alexandre Julliard
Oct 04, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check for getuid and avoid the use of it in libwine if we don't have
it.
parent
b96edb38
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
1 deletion
+12
-1
configure
configure
+2
-0
configure.ac
configure.ac
+1
-0
config.h.in
include/config.h.in
+3
-0
config.c
libs/wine/config.c
+6
-1
No files found.
configure
View file @
e7c3ab18
...
...
@@ -16278,6 +16278,7 @@ fi
for
ac_func
in
\
_lwp_create
\
_lwp_self
\
...
...
@@ -16308,6 +16309,7 @@ for ac_func in \
getservbyport
\
gettid
\
gettimeofday
\
getuid
\
inet_network
\
lseek64
\
lstat
\
...
...
configure.ac
View file @
e7c3ab18
...
...
@@ -1083,6 +1083,7 @@ AC_CHECK_FUNCS(\
getservbyport \
gettid \
gettimeofday \
getuid \
inet_network \
lseek64 \
lstat \
...
...
include/config.h.in
View file @
e7c3ab18
...
...
@@ -191,6 +191,9 @@
/* Define to 1 if you have the `gettimeofday' function. */
#undef HAVE_GETTIMEOFDAY
/* Define to 1 if you have the `getuid' function. */
#undef HAVE_GETUID
/* Define to 1 if you have the <gif_lib.h> header file. */
#undef HAVE_GIF_LIB_H
...
...
libs/wine/config.c
View file @
e7c3ab18
...
...
@@ -105,10 +105,15 @@ inline static void remove_trailing_slashes( char *path )
static
void
init_server_dir
(
dev_t
dev
,
ino_t
ino
)
{
char
*
p
;
#ifdef HAVE_GETUID
const
unsigned
int
uid
=
getuid
();
#else
const
unsigned
int
uid
=
0
;
#endif
server_dir
=
xmalloc
(
sizeof
(
server_root_prefix
)
+
32
+
sizeof
(
server_dir_prefix
)
+
2
*
sizeof
(
dev
)
+
2
*
sizeof
(
ino
)
);
sprintf
(
server_dir
,
"%s%u%s"
,
server_root_prefix
,
getuid
()
,
server_dir_prefix
);
sprintf
(
server_dir
,
"%s%u%s"
,
server_root_prefix
,
uid
,
server_dir_prefix
);
p
=
server_dir
+
strlen
(
server_dir
);
if
(
sizeof
(
dev
)
>
sizeof
(
unsigned
long
)
&&
dev
>
~
0UL
)
...
...
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