Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nxssh
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
Konstantin Artyushkin
nxssh
Commits
16d101e8
Commit
16d101e8
authored
8 years ago
by
Stas Korobeynikov
Committed by
Pavel Vainerman
7 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch off sshkey permision
parent
c8382d35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
authfile.c
authfile.c
+23
-0
No files found.
authfile.c
View file @
16d101e8
...
@@ -23,6 +23,23 @@
...
@@ -23,6 +23,23 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
*/
/**************************************************************************/
/* */
/* Copyright (c) 2001, 2011 NoMachine, http://www.nomachine.com/. */
/* */
/* NXSSH, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
/* software is allowed according to terms specified in the file LICENSE */
/* which comes in the source distribution. */
/* */
/* Check http://www.nomachine.com/licensing.html for applicability. */
/* */
/* NX and NoMachine are trademarks of Medialogic S.p.A. */
/* */
/* All rights reserved. */
/* */
/**************************************************************************/
#include "includes.h"
#include "includes.h"
#include <sys/types.h>
#include <sys/types.h>
...
@@ -185,6 +202,12 @@ sshkey_perm_ok(int fd, const char *filename)
...
@@ -185,6 +202,12 @@ sshkey_perm_ok(int fd, const char *filename)
if
(
fstat
(
fd
,
&
st
)
<
0
)
if
(
fstat
(
fd
,
&
st
)
<
0
)
return
SSH_ERR_SYSTEM_ERROR
;
return
SSH_ERR_SYSTEM_ERROR
;
//
// /usr/NX/share/client.id_dsa.key can be accessed by everyone.
//
return
0
;
/*
/*
* if a key owned by the user is accessed, then we check the
* if a key owned by the user is accessed, then we check the
* permissions of the file. if the key owned by a different user,
* permissions of the file. if the key owned by a different user,
...
...
This diff is collapsed.
Click to expand it.
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