Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
e7c3ab18
Commit
e7c3ab18
authored
20 years ago
by
Steven Edwards
Committed by
Alexandre Julliard
20 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Check for getuid and avoid the use of it in libwine if we don't have
it.
parent
b96edb38
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
configure
+2
-0
2 additions, 0 deletions
configure
configure.ac
+1
-0
1 addition, 0 deletions
configure.ac
include/config.h.in
+3
-0
3 additions, 0 deletions
include/config.h.in
libs/wine/config.c
+6
-1
6 additions, 1 deletion
libs/wine/config.c
with
12 additions
and
1 deletion
configure
+
2
−
0
View file @
e7c3ab18
...
...
@@ -16276,6 +16276,7 @@ fi
for ac_func in \
...
...
@@ -16308,6 +16309,7 @@ for ac_func in \
getservbyport \
gettid \
gettimeofday \
getuid \
inet_network \
lseek64 \
lstat \
...
...
This diff is collapsed.
Click to expand it.
configure.ac
+
1
−
0
View file @
e7c3ab18
...
...
@@ -1083,6 +1083,7 @@ AC_CHECK_FUNCS(\
getservbyport \
gettid \
gettimeofday \
getuid \
inet_network \
lseek64 \
lstat \
...
...
This diff is collapsed.
Click to expand it.
include/config.h.in
+
3
−
0
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
...
...
This diff is collapsed.
Click to expand it.
libs/wine/config.c
+
6
−
1
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
,
get
uid
()
,
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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment