diff --git a/bin/sh/expand.c b/bin/sh/expand.c index eccefd0a17b..f087f546c50 100644 --- a/bin/sh/expand.c +++ b/bin/sh/expand.c @@ -1162,7 +1162,7 @@ expmeta(char *enddir, char *name) if (*p == '\0') break; } - if (metaflag == 0 || stat(expdir, &statb) >= 0) + if (metaflag == 0 || lstat(expdir, &statb) >= 0) addfname(expdir); return; }