Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ca5a6d07
Commit
ca5a6d07
authored
Jan 14, 2022
by
Jinoh Kang
Committed by
Alexandre Julliard
Apr 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineboot: Don't use ai_canonname for ComputerName if it is "localhost".
Signed-off-by:
Jinoh Kang
<
jinoh.kang.kr@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f7668a85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
wineboot.c
programs/wineboot/wineboot.c
+3
-1
No files found.
programs/wineboot/wineboot.c
View file @
ca5a6d07
...
@@ -826,7 +826,9 @@ static void create_computer_name_keys(void)
...
@@ -826,7 +826,9 @@ static void create_computer_name_keys(void)
if
(
gethostname
(
buffer
,
sizeof
(
buffer
)
))
return
;
if
(
gethostname
(
buffer
,
sizeof
(
buffer
)
))
return
;
hints
.
ai_flags
=
AI_CANONNAME
;
hints
.
ai_flags
=
AI_CANONNAME
;
if
(
!
getaddrinfo
(
buffer
,
NULL
,
&
hints
,
&
res
))
name
=
res
->
ai_canonname
;
if
(
!
getaddrinfo
(
buffer
,
NULL
,
&
hints
,
&
res
)
&&
res
->
ai_canonname
&&
strcasecmp
(
res
->
ai_canonname
,
"localhost"
)
!=
0
)
name
=
res
->
ai_canonname
;
dot
=
strchr
(
name
,
'.'
);
dot
=
strchr
(
name
,
'.'
);
if
(
dot
)
*
dot
++
=
0
;
if
(
dot
)
*
dot
++
=
0
;
else
dot
=
name
+
strlen
(
name
);
else
dot
=
name
+
strlen
(
name
);
...
...
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