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
e736fff0
Commit
e736fff0
authored
Feb 09, 2015
by
Mihai Moldovan
Committed by
Mike Gabriel
Feb 09, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix nxauth location on Mac OS X 10 (052_nxcomp_macos10-nxauth-location.full+lite.patch)
parent
90547869
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
46 deletions
+13
-46
052_nxcomp_macos10-nxauth-location.full+lite.patch
...atches/052_nxcomp_macos10-nxauth-location.full+lite.patch
+0
-41
series
debian/patches/series
+0
-1
Auth.cpp
nxcomp/Auth.cpp
+13
-4
No files found.
debian/patches/052_nxcomp_macos10-nxauth-location.full+lite.patch
deleted
100644 → 0
View file @
90547869
Description: Fix nxauth location on Mac OS X 10
Author: Mihai Moldovan <ionic@ionic.de>
--- a/nxcomp/Auth.cpp
+++ b/nxcomp/Auth.cpp
@@ -217,22 +217,31 @@
//
// Use the nxauth command on Windows and the Mac, xauth
- // on all the other platforms. On Windows and on the Mac
- // we assume that the nxauth command is located under
- // bin in the client installation directory. On all the
+ // on all the other platforms. On Windows we assume that
+ // the nxauth command is located under bin in the client
+ // installation directory. On Mac OS X we assume that the
+ // command is located directly in the client installation
+ // directory, to make bundle shipping easier. On all the
// other platforms we use the default xauth command that
// is in our path.
//
char command[DEFAULT_STRING_LIMIT];
- #if defined(__CYGWIN32__) || defined(__APPLE__)
+ #if defined(__CYGWIN32__)
snprintf(command, DEFAULT_STRING_LIMIT - 1,
"%s/bin/nxauth", control -> SystemPath);
*(command + DEFAULT_STRING_LIMIT - 1) = '\0';
+ #elif defined(__APPLE__)
+
+ snprintf(command, DEFAULT_STRING_LIMIT - 1,
+ "%s/nxauth", control -> SystemPath);
+
+ *(command + DEFAULT_STRING_LIMIT - 1) = '\0';
+
#else
strcpy(command, "xauth");
debian/patches/series
View file @
e736fff0
052_nxcomp_macos10-nxauth-location.full+lite.patch
053_nx-X11_no-xcomp1-install-target.full.patch
054_nx-X11_ppc64-ftbfs.full.patch
055_nx-X11_imake-Werror-format-security.full.patch
...
...
nxcomp/Auth.cpp
View file @
e736fff0
...
...
@@ -217,22 +217,31 @@ int Auth::getCookie()
//
// Use the nxauth command on Windows and the Mac, xauth
// on all the other platforms. On Windows and on the Mac
// we assume that the nxauth command is located under
// bin in the client installation directory. On all the
// on all the other platforms. On Windows we assume that
// the nxauth command is located under bin in the client
// installation directory. On Mac OS X we assume that the
// command is located directly in the client installation
// directory, to make bundle shipping easier. On all the
// other platforms we use the default xauth command that
// is in our path.
//
char
command
[
DEFAULT_STRING_LIMIT
];
#if defined(__CYGWIN32__)
|| defined(__APPLE__)
#if defined(__CYGWIN32__)
snprintf
(
command
,
DEFAULT_STRING_LIMIT
-
1
,
"%s/bin/nxauth"
,
control
->
SystemPath
);
*
(
command
+
DEFAULT_STRING_LIMIT
-
1
)
=
'\0'
;
#elif defined(__APPLE__)
snprintf
(
command
,
DEFAULT_STRING_LIMIT
-
1
,
"%s/nxauth"
,
control
->
SystemPath
);
*
(
command
+
DEFAULT_STRING_LIMIT
-
1
)
=
'\0'
;
#else
strcpy
(
command
,
"xauth"
);
...
...
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