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
abcbd85b
Commit
abcbd85b
authored
Mar 27, 2024
by
Brendan Shanks
Committed by
Alexandre Julliard
Mar 27, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Simplify creation of the server directory.
parent
d86627a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
14 deletions
+2
-14
server.c
dlls/ntdll/unix/server.c
+2
-14
No files found.
dlls/ntdll/unix/server.c
View file @
abcbd85b
...
...
@@ -1232,23 +1232,11 @@ int server_pipe( int fd[2] )
static
const
char
*
init_server_dir
(
dev_t
dev
,
ino_t
ino
)
{
char
*
dir
=
NULL
;
int
p
;
char
tmp
[
2
*
sizeof
(
dev
)
+
2
*
sizeof
(
ino
)
+
2
];
if
(
dev
!=
(
unsigned
long
)
dev
)
p
=
snprintf
(
tmp
,
sizeof
(
tmp
),
"%lx%08lx-"
,
(
unsigned
long
)((
unsigned
long
long
)
dev
>>
32
),
(
unsigned
long
)
dev
);
else
p
=
snprintf
(
tmp
,
sizeof
(
tmp
),
"%lx-"
,
(
unsigned
long
)
dev
);
if
(
ino
!=
(
unsigned
long
)
ino
)
snprintf
(
tmp
+
p
,
sizeof
(
tmp
)
-
p
,
"%lx%08lx"
,
(
unsigned
long
)((
unsigned
long
long
)
ino
>>
32
),
(
unsigned
long
)
ino
);
else
snprintf
(
tmp
+
p
,
sizeof
(
tmp
)
-
p
,
"%lx"
,
(
unsigned
long
)
ino
);
#ifdef __ANDROID__
/* there's no /tmp dir on Android */
asprintf
(
&
dir
,
"%s/.wineserver/server-%
s"
,
config_dir
,
tmp
);
asprintf
(
&
dir
,
"%s/.wineserver/server-%
llx-%llx"
,
config_dir
,
(
unsigned
long
long
)
dev
,
(
unsigned
long
long
)
ino
);
#else
asprintf
(
&
dir
,
"/tmp/.wine-%u/server-%
s"
,
getuid
(),
tmp
);
asprintf
(
&
dir
,
"/tmp/.wine-%u/server-%
llx-%llx"
,
getuid
(),
(
unsigned
long
long
)
dev
,
(
unsigned
long
long
)
ino
);
#endif
return
dir
;
}
...
...
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