From 22fb2a07db173532462d90ad875a06254e932773 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Fri, 21 Jan 2022 22:26:28 -0500 Subject: dash: Stop this stat64 nonsense --- src/cd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cd.c') diff --git a/src/cd.c b/src/cd.c index 1ef1dc5..b6742af 100644 --- a/src/cd.c +++ b/src/cd.c @@ -96,7 +96,7 @@ cdcmd(int argc, char **argv) const char *path; const char *p; char c; - struct stat64 statb; + struct stat statb; int flags; int len; @@ -132,7 +132,7 @@ dotdot: c = *p; p = stalloc(len); - if (stat64(p, &statb) >= 0 && S_ISDIR(statb.st_mode)) { + if (stat(p, &statb) >= 0 && S_ISDIR(statb.st_mode)) { if (c && c != ':') flags |= CD_PRINT; docd: -- cgit 1.4.1