aboutsummaryrefslogtreecommitdiffstats
path: root/packages/ctorrent/files/nogetwd.patch
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2005-06-30 08:19:37 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-06-30 08:19:37 +0000
commitc8e5702127e507e82e6f68a4b8c546803accea9d (patch)
tree00583491f40ecc640f2b28452af995e3a63a09d7 /packages/ctorrent/files/nogetwd.patch
parent87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff)
downloadopenembedded-c8e5702127e507e82e6f68a4b8c546803accea9d.tar.gz
openembedded-c8e5702127e507e82e6f68a4b8c546803accea9d.tar.bz2
openembedded-c8e5702127e507e82e6f68a4b8c546803accea9d.zip
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/ctorrent/files/nogetwd.patch')
-rw-r--r--packages/ctorrent/files/nogetwd.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/packages/ctorrent/files/nogetwd.patch b/packages/ctorrent/files/nogetwd.patch
index e69de29bb2..d150521cca 100644
--- a/packages/ctorrent/files/nogetwd.patch
+++ b/packages/ctorrent/files/nogetwd.patch
@@ -0,0 +1,34 @@
+Index: ctorrent-1.3.4/btfiles.cpp
+===================================================================
+--- 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;
+Index: ctorrent-1.3.4/configure.ac
+===================================================================
+--- 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)