Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
81569ad6
Unverified
Commit
81569ad6
authored
Sep 06, 2017
by
Mihai Moldovan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sunweaver-pr/sun-path-is-104-on-debian-kfreebsd' into 3.6.x
Attributes GH PR #508:
https://github.com/ArcticaProject/nx-libs/pull/508
Fixes: ArcticaProject/nx-libs#507
parents
d3f97cea
96ba6190
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
Loop.cpp
nxcomp/src/Loop.cpp
+8
-0
Proxy.cpp
nxcomp/src/Proxy.cpp
+8
-0
No files found.
nxcomp/src/Loop.cpp
View file @
81569ad6
...
...
@@ -3810,7 +3810,15 @@ int SetupAuthInstance()
launchdAddrUnix
.
sun_family
=
AF_UNIX
;
#ifdef __linux__
const
int
launchdAddrNameLength
=
108
;
#else
/* POSIX/SUS does not specify a length.
* BSD derivatives generally support 104 bytes, other systems may be more constrained.
* If you happen to run into such systems, extend this section with the appropriate limit.
*/
const
int
launchdAddrNameLength
=
104
;
#endif
int
success
=
-
1
;
...
...
nxcomp/src/Proxy.cpp
View file @
81569ad6
...
...
@@ -6294,7 +6294,15 @@ int Proxy::handleNewGenericConnectionFromProxyUnix(int channelId, T_channel_type
serverAddrUnix
.
sun_family
=
AF_UNIX
;
#ifdef __linux__
const
int
serverAddrNameLength
=
108
;
#else
/* POSIX/SUS does not specify a length.
* BSD derivatives generally support 104 bytes, other systems may be more constrained.
* If you happen to run into such systems, extend this section with the appropriate limit.
*/
const
int
serverAddrNameLength
=
104
;
#endif
strncpy
(
serverAddrUnix
.
sun_path
,
path
,
serverAddrNameLength
);
...
...
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