SCCS-vsn: bin/ls/ls.c 5.48
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)ls.c 5.47 (Berkeley) %G%";
+static char sccsid[] = "@(#)ls.c 5.48 (Berkeley) %G%";
#endif /* not lint */
#include <sys/param.h>
#endif /* not lint */
#include <sys/param.h>
dstats = rstats = NULL;
for (dircnt = regcnt = 0; *argv; ++argv) {
if (statfcn(*argv, &sb) &&
dstats = rstats = NULL;
for (dircnt = regcnt = 0; *argv; ++argv) {
if (statfcn(*argv, &sb) &&
- statfcn == stat && lstat(*argv, &sb)) {
+ (statfcn == lstat || lstat(*argv, &sb))) {
(void)fprintf(stderr,
"ls: %s: %s\n", *argv, strerror(errno));
if (errno == ENOENT)
(void)fprintf(stderr,
"ls: %s: %s\n", *argv, strerror(errno));
if (errno == ENOENT)