summaryrefslogtreecommitdiff
path: root/meta/packages/fakechroot/files
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2008-08-28 07:35:22 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2008-08-28 07:35:22 +0000
commit102af610b9aea879115e0ed89a5336358c7ef8ee (patch)
treec6ac29526a897758af107686a4eb1a99617e15f0 /meta/packages/fakechroot/files
parent1ec9176a05c20d4643ab5f41e4f462afe278f23d (diff)
downloadopenembedded-core-102af610b9aea879115e0ed89a5336358c7ef8ee.tar.gz
openembedded-core-102af610b9aea879115e0ed89a5336358c7ef8ee.tar.bz2
openembedded-core-102af610b9aea879115e0ed89a5336358c7ef8ee.zip
fakechroot: fix duplicated readlink
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5115 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/fakechroot/files')
-rw-r--r--meta/packages/fakechroot/files/fix-readlink.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/packages/fakechroot/files/fix-readlink.patch b/meta/packages/fakechroot/files/fix-readlink.patch
new file mode 100644
index 0000000000..f218956790
--- /dev/null
+++ b/meta/packages/fakechroot/files/fix-readlink.patch
@@ -0,0 +1,32 @@
+---
+ src/libfakechroot.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- fakechroot-2.5.orig/src/libfakechroot.c
++++ fakechroot-2.5/src/libfakechroot.c
+@@ -596,11 +596,11 @@ void fakechroot_init (void)
+ nextsym(open64, "open64");
+ #if !defined(HAVE___OPENDIR2)
+ nextsym(opendir, "opendir");
+ #endif
+ nextsym(pathconf, "pathconf");
+- nextsym(readlink, "readlink");
++ nextsym(readlink, "own_readlink");
+ nextsym(realpath, "realpath");
+ nextsym(remove, "remove");
+ #ifdef HAVE_REMOVEXATTR
+ nextsym(removexattr, "removexattr");
+ #endif
+@@ -1864,11 +1864,11 @@ long pathconf (const char *path, int nam
+ return next_pathconf(path, name);
+ }
+
+
+ /* #include <unistd.h> */
+-int readlink (const char *path, char *buf, READLINK_TYPE_ARG3)
++int own_readlink (const char *path, char *buf, READLINK_TYPE_ARG3)
+ {
+ int status;
+ char tmp[FAKECHROOT_MAXPATH], *tmpptr;
+ char *fakechroot_path, *fakechroot_ptr, fakechroot_buf[FAKECHROOT_MAXPATH];
+