mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2024-10-23 20:59:54 +00:00
Updated from libc
This commit is contained in:
parent
ffea662953
commit
41e6704efd
1 changed files with 4 additions and 1 deletions
|
@ -106,6 +106,8 @@ extern int errno;
|
||||||
#define ANSI_STRING
|
#define ANSI_STRING
|
||||||
#else /* No standard headers. */
|
#else /* No standard headers. */
|
||||||
|
|
||||||
|
extern char *getenv ();
|
||||||
|
|
||||||
#ifdef HAVE_STRING_H
|
#ifdef HAVE_STRING_H
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#define ANSI_STRING
|
#define ANSI_STRING
|
||||||
|
@ -496,7 +498,8 @@ glob (pattern, flags, errfunc, pglob)
|
||||||
struct stat st;
|
struct stat st;
|
||||||
for (i = oldcount; i < pglob->gl_pathc; ++i)
|
for (i = oldcount; i < pglob->gl_pathc; ++i)
|
||||||
if (((flags & GLOB_ALTDIRFUNC) ?
|
if (((flags & GLOB_ALTDIRFUNC) ?
|
||||||
*pglob->gl_stat : __stat) (pglob->gl_pathv[i], &st) == 0 &&
|
(*pglob->gl_stat) (pglob->gl_pathv[i], &st) :
|
||||||
|
__stat (pglob->gl_pathv[i], &st)) == 0 &&
|
||||||
S_ISDIR (st.st_mode))
|
S_ISDIR (st.st_mode))
|
||||||
{
|
{
|
||||||
size_t len = strlen (pglob->gl_pathv[i]) + 2;
|
size_t len = strlen (pglob->gl_pathv[i]) + 2;
|
||||||
|
|
Loading…
Reference in a new issue