Project

General

Profile

Bug #3248 » 0008-sh-1-Bring-back-patches-between-2234273d6fc-and-05bf.patch

piecuch, 09/16/2020 11:16 AM

View differences:

bin/sh/Makefile
SHSRCS= alias.c arith_yacc.c arith_yylex.c cd.c echo.c error.c eval.c \
exec.c expand.c \
histedit.c input.c jobs.c kill.c mail.c main.c memalloc.c miscbltin.c \
mystring.c options.c output.c parser.c printf.c redir.c show.c \
mystring.c options.c output.c parser.c printf.c redir.c \
test.c trap.c var.c
GENSRCS= builtins.c nodes.c syntax.c
GENHDRS= builtins.h nodes.h syntax.h token.h
bin/sh/expand.c
if (dp->d_name[0] == '.' && ! matchdot)
continue;
if (patmatch(start, dp->d_name)) {
#ifdef _DIRENT_HAVE_D_NAMLEN
namlen = dp->d_namlen;
#else
namlen = strlen(dp->d_name);
#endif
if (enddir + namlen + 1 > expdir_end)
continue;
memcpy(enddir, dp->d_name, namlen + 1);
(6-6/10)