Bugzilla – Attachment 1821 Details for
Bug 1739
getcwd does not support size zero argument on Solaris
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
A little patch to fix the getcwd function usage
derelativise_path_bugfix.patch (text/plain), 426 bytes, created by
Yann Rouillard
on 2010-03-26 04:54:57 AEDT
(
hide
)
Description:
A little patch to fix the getcwd function usage
Filename:
MIME Type:
Creator:
Yann Rouillard
Created:
2010-03-26 04:54:57 AEDT
Size:
426 bytes
patch
obsolete
>--- 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);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1739
: 1821 |
1822