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
531dbbd8
Commit
531dbbd8
authored
Sep 27, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Base the server directory name on the uid, not the username.
parent
20313b83
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
13 deletions
+4
-13
config.c
libs/wine/config.c
+4
-13
No files found.
libs/wine/config.c
View file @
531dbbd8
...
...
@@ -104,21 +104,12 @@ inline static void remove_trailing_slashes( char *path )
/* initialize the server directory value */
static
void
init_server_dir
(
dev_t
dev
,
ino_t
ino
)
{
const
char
*
user
=
wine_get_user_name
();
char
*
p
;
server_dir
=
xmalloc
(
sizeof
(
server_root_prefix
)
+
strlen
(
user
)
+
sizeof
(
server_dir_prefix
)
+
server_dir
=
xmalloc
(
sizeof
(
server_root_prefix
)
+
32
+
sizeof
(
server_dir_prefix
)
+
2
*
sizeof
(
dev
)
+
2
*
sizeof
(
ino
)
);
strcpy
(
server_dir
,
server_root_prefix
);
p
=
server_dir
+
sizeof
(
server_root_prefix
)
-
1
;
strcpy
(
p
,
user
);
while
(
*
p
)
{
if
(
*
p
==
'/'
)
*
p
=
'!'
;
p
++
;
}
strcpy
(
p
,
server_dir_prefix
);
p
+=
sizeof
(
server_dir_prefix
)
-
1
;
sprintf
(
server_dir
,
"%s%u%s"
,
server_root_prefix
,
getuid
(),
server_dir_prefix
);
p
=
server_dir
+
strlen
(
server_dir
);
if
(
sizeof
(
dev
)
>
sizeof
(
unsigned
long
)
&&
dev
>
~
0UL
)
sprintf
(
p
,
"%lx%08lx-"
,
(
unsigned
long
)(
dev
>>
32
),
(
unsigned
long
)
dev
);
...
...
@@ -151,7 +142,7 @@ static void init_paths(void)
}
if
(
!
user
)
{
sprintf
(
uid_str
,
"%
d
"
,
getuid
()
);
sprintf
(
uid_str
,
"%
u
"
,
getuid
()
);
user
=
uid_str
;
}
#else
/* HAVE_GETPWUID */
...
...
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