2006-12-19 00:17:44 +01:00
|
|
|
Always use lstat in glob call to work around a change in glibc's
|
|
|
|
glob code. [#129434], rh#126460
|
|
|
|
|
|
|
|
rpm-4.4.7 comes with its own glob implementation, so it doesn't
|
|
|
|
need this patch (but it also doesn't hurt).
|
|
|
|
|
2008-09-12 20:37:28 +02:00
|
|
|
Index: rpmio/rpmrpc.c
|
|
|
|
===================================================================
|
|
|
|
--- rpmio/rpmrpc.c.orig
|
|
|
|
+++ rpmio/rpmrpc.c
|
|
|
|
@@ -1462,7 +1462,8 @@ fprintf(stderr, "*** Glob(%s,0x%x,%p,%p)
|
2006-12-19 00:17:44 +01:00
|
|
|
pglob->gl_readdir = Readdir;
|
|
|
|
pglob->gl_opendir = Opendir;
|
|
|
|
pglob->gl_lstat = Lstat;
|
|
|
|
- pglob->gl_stat = Stat;
|
|
|
|
+ /* always use lstat to glob symlinks */
|
|
|
|
+ pglob->gl_stat = Lstat;
|
|
|
|
/*@=type@*/
|
|
|
|
flags |= GLOB_ALTDIRFUNC;
|
|
|
|
flags &= ~GLOB_TILDE;
|