From d2ed8588bb25872b727cde318359440eebb7b070 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 22 Oct 2006 20:33:36 +0000 Subject: [PATCH] use getdents64 in the uClibc glob function SVN-Revision: 5256 --- .../uClibc/patches/150-glob_use_getdents64.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 openwrt/toolchain/uClibc/patches/150-glob_use_getdents64.patch diff --git a/openwrt/toolchain/uClibc/patches/150-glob_use_getdents64.patch b/openwrt/toolchain/uClibc/patches/150-glob_use_getdents64.patch new file mode 100644 index 0000000000..f6e3e65920 --- /dev/null +++ b/openwrt/toolchain/uClibc/patches/150-glob_use_getdents64.patch @@ -0,0 +1,12 @@ +diff -ur uClibc.old/libc/misc/glob/glob.c uClibc.dev/libc/misc/glob/glob.c +--- uClibc.old/libc/misc/glob/glob.c 2005-01-12 08:59:21.000000000 +0100 ++++ uClibc.dev/libc/misc/glob/glob.c 2006-10-22 22:30:29.000000000 +0200 +@@ -420,7 +420,7 @@ + } + else + { +- struct dirent *d = readdir ((DIR *) stream); ++ struct dirent64 *d = readdir64 ((DIR *) stream); + if (d == NULL) + break; + if (! (d->d_ino != 0)) -- 2.30.2