summary refs log tree commit diff
path: root/src/expand.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-01-21 22:26:28 -0500
committerJune McEnroe <june@causal.agency>2022-01-21 22:26:28 -0500
commit22fb2a07db173532462d90ad875a06254e932773 (patch)
treef1452b68dad10fa2a6d43223a992eefa93cedf75 /src/expand.c
parentdash: Just zero mailsize on changemail (diff)
downloaddash-22fb2a07db173532462d90ad875a06254e932773.tar.gz
dash-22fb2a07db173532462d90ad875a06254e932773.zip
dash: Stop this stat64 nonsense
Diffstat (limited to 'src/expand.c')
-rw-r--r--src/expand.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/expand.c b/src/expand.c
index 1730670..623b4ce 100644
--- a/src/expand.c
+++ b/src/expand.c
@@ -1282,9 +1282,9 @@ expmeta(char *name, unsigned name_len, unsigned expdir_len)
 	char *start;
 	char *endname;
 	int metaflag;
-	struct stat64 statb;
+	struct stat statb;
 	DIR *dirp;
-	struct dirent64 *dp;
+	struct dirent *dp;
 	int atend;
 	int matchdot;
 	int esc;
@@ -1327,7 +1327,7 @@ expmeta(char *name, unsigned name_len, unsigned expdir_len)
 				p++;
 			*enddir++ = *p;
 		} while (*p++);
-		if (lstat64(expdir, &statb) >= 0)
+		if (lstat(expdir, &statb) >= 0)
 			addfname(expdir);
 		return;
 	}
@@ -1361,7 +1361,7 @@ expmeta(char *name, unsigned name_len, unsigned expdir_len)
 		p++;
 	if (*p == '.')
 		matchdot++;
-	while (! int_pending() && (dp = readdir64(dirp)) != NULL) {
+	while (! int_pending() && (dp = readdir(dirp)) != NULL) {
 		if (dp->d_name[0] == '.' && ! matchdot)
 			continue;
 		if (pmatch(start, dp->d_name)) {