[csw-devel] SF.net SVN: gar:[9357] csw/mgar/pkg/openssh/trunk/files/ derelativise_path_bugfix.patch

chninkel at users.sourceforge.net chninkel at users.sourceforge.net
Wed Mar 24 22:15:58 CET 2010


Revision: 9357
          http://gar.svn.sourceforge.net/gar/?rev=9357&view=rev
Author:   chninkel
Date:     2010-03-24 21:15:58 +0000 (Wed, 24 Mar 2010)

Log Message:
-----------
openssh: added derelativise_path_bugfix patch (take two)

Added Paths:
-----------
    csw/mgar/pkg/openssh/trunk/files/derelativise_path_bugfix.patch

Added: csw/mgar/pkg/openssh/trunk/files/derelativise_path_bugfix.patch
===================================================================
--- csw/mgar/pkg/openssh/trunk/files/derelativise_path_bugfix.patch	                        (rev 0)
+++ csw/mgar/pkg/openssh/trunk/files/derelativise_path_bugfix.patch	2010-03-24 21:15:58 UTC (rev 9357)
@@ -0,0 +1,11 @@
+--- openssh-5.4p1/servconf.c.orig	Wed Mar 24 21:56:53 2010
++++ openssh-5.4p1/servconf.c	Wed Mar 24 21:56:29 2010
+@@ -492,7 +492,7 @@
+ 	expanded = tilde_expand_filename(path, getuid());
+ 	if (*expanded == '/')
+ 		return expanded;
+-	if ((cwd = getcwd(NULL, 0)) == NULL)
++	if ((cwd = getcwd(NULL, PATH_MAX)) == NULL)
+ 		fatal("%s: getcwd: %s", __func__, strerror(errno));
+ 	xasprintf(&ret, "%s/%s", cwd, expanded);
+ 	xfree(cwd);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list