Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 63384 Details for
Bug 98929
ctorrent patch to compile under uclibc
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
getcwd fix
getcwd.patch (text/plain), 1.14 KB, created by
Enderson Tadeu S. Maia (RETIRED)
on 2005-07-14 05:55:19 UTC
(
hide
)
Description:
getcwd fix
Filename:
MIME Type:
Creator:
Enderson Tadeu S. Maia (RETIRED)
Created:
2005-07-14 05:55:19 UTC
Size:
1.14 KB
patch
obsolete
>--- ctorrent-1.3.4.orig/btfiles.cpp 2004-09-08 18:10:51.000000000 -0500 >+++ ctorrent-1.3.4/btfiles.cpp 2005-02-10 17:27:55.000000000 -0600 >@@ -169,7 +169,7 @@ > DIR *dp; > BTFILE *pbf; > >- if( !getwd(full_cur) ) return -1; >+ if( !getcwd(full_cur, MAXPATHLEN) ) return -1; > > if( cur_path ){ > strcpy(fn, full_cur); >@@ -293,7 +293,7 @@ > m_btfhead = pbf; > }else if( S_IFDIR & sb.st_mode ){ > char wd[MAXPATHLEN]; >- if( !getwd(wd) ) return -1; >+ if( !getcwd(wd, MAXPATHLEN) ) return -1; > m_directory = new char[strlen(pathname) + 1]; > #ifndef WINDOWS > if( !m_directory ) return -1; >--- ctorrent-1.3.4.orig/configure.ac 2004-09-08 18:10:51.000000000 -0500 >+++ ctorrent-1.3.4/configure.ac 2005-02-10 17:28:03.000000000 -0600 >@@ -32,6 +32,6 @@ > AC_FUNC_MEMCMP > AC_TYPE_SIGNAL > AC_FUNC_STAT >-AC_CHECK_FUNCS([ftruncate gethostbyname gettimeofday getwd inet_ntoa memchr memmove memset mkdir select socket strchr strerror strncasecmp strstr strtol strnstr]) >+AC_CHECK_FUNCS([ftruncate gethostbyname gettimeofday getcwd inet_ntoa memchr memmove memset mkdir select socket strchr strerror strncasecmp strstr strtol strnstr]) > > AC_OUTPUT(Makefile)
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 98929
:
63343
| 63384