Displaying 5 results from an estimated 5 matches for "derelativise_path".
2010 Mar 26
0
Potential problem in derelativise_path
...tumbled over this one:
[servconf.c]
from portable: getcwd(NULL, 0) doesn't work on all platforms, so
use a stack buffer;
The stack buffer has a size of MAXPATHLEN. However, on many systems the
absolute path can exceed MAXPATHLEN, for instance on Linux or Cygwin.
In that case, the derelativise_path function will fail with a fatal
error. So on these systems it would be better if the function would
stick to getcwd(NULL, 0).
Corinna
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat
2010 Mar 24
6
[Bug 1739] New: getcwd does not support size zero argument on Solaris
...H
Version: 5.4p1
Platform: Sparc
OS/Version: Solaris
Status: NEW
Severity: normal
Priority: P2
Component: sshd
AssignedTo: unassigned-bugs at mindrot.org
ReportedBy: rich at mirch.com
Overview:
The function derelativise_path() in servconf.c calls getcwd(NULL,0)
and using zero for the size argument is unsupported on Solaris.
Steps to Reproduce:
1) uncomment #AuthorizedKeysFile %h/.ssh/authorized_keys
from /etc/ssh/sshd_config
2) restart sshd
Actual Results:
sshd failed to start with the f...
2012 Nov 21
1
HostKey in hardware?
Hi,
Is there any way to store HostKey in hardware (and delegate the related
processing)?
I have been using Roumen Petrov's x509 patch for clients, which works via an
OpenSSL engine, but it does not seem to support server HostKey:
http://roumenpetrov.info/pipermail/ssh_x509_roumenpetrov.info/2012q4/000019.html
For PKCS#11, I have found an email on this list from a year back suggesting
this
2010 Mar 31
2
[Bug 1748] New: getcwd being called with invalid argument in servconf.c
...5.4p1
Platform: Sparc
OS/Version: Solaris
Status: NEW
Severity: critical
Priority: P2
Component: sshd
AssignedTo: unassigned-bugs at mindrot.org
ReportedBy: dan.mitton at ymp.gov
In servconf.c, the code segment...
char *
derelativise_path(const char *path)
{
char *expanded, *ret, *cwd;
expanded = tilde_expand_filename(path, getuid());
if (*expanded == '/')
return expanded;
if ((cwd = getcwd(NULL, 0)) == NULL)
fatal("%s: getcwd: %s", __func__, strerror...
2011 May 06
2
[Bug 1902] New: persistent mux master should chdir away from the current directory
https://bugzilla.mindrot.org/show_bug.cgi?id=1902
Summary: persistent mux master should chdir away from the
current directory
Product: Portable OpenSSH
Version: 5.8p2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: ssh
AssignedTo: