summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/fakechroot/fakechroot/fix-readlink.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/fakechroot/fakechroot/fix-readlink.patch')
-rw-r--r--meta/recipes-devtools/fakechroot/fakechroot/fix-readlink.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/meta/recipes-devtools/fakechroot/fakechroot/fix-readlink.patch b/meta/recipes-devtools/fakechroot/fakechroot/fix-readlink.patch
new file mode 100644
index 0000000000..9321564922
--- /dev/null
+++ b/meta/recipes-devtools/fakechroot/fakechroot/fix-readlink.patch
@@ -0,0 +1,26 @@
1---
2 src/libfakechroot.c | 4 ++--
3 1 file changed, 2 insertions(+), 2 deletions(-)
4
5Index: fakechroot-2.9/src/libfakechroot.c
6===================================================================
7--- fakechroot-2.9.orig/src/libfakechroot.c 2009-03-31 11:20:41.000000000 +0100
8+++ fakechroot-2.9/src/libfakechroot.c 2010-03-22 17:40:17.386783375 +0000
9@@ -775,7 +775,7 @@
10 nextsym(opendir, "opendir");
11 #endif
12 nextsym(pathconf, "pathconf");
13- nextsym(readlink, "readlink");
14+ nextsym(readlink, "own_readlink");
15 nextsym(realpath, "realpath");
16 nextsym(remove, "remove");
17 #ifdef HAVE_REMOVEXATTR
18@@ -2492,7 +2492,7 @@
19
20
21 /* #include <unistd.h> */
22-READLINK_TYPE_RETURN readlink (const char *path, char *buf, READLINK_TYPE_ARG3)
23+READLINK_TYPE_RETURN own_readlink (const char *path, char *buf, READLINK_TYPE_ARG3)
24 {
25 int status;
26 char tmp[FAKECHROOT_MAXPATH], *tmpptr;