summary refs log tree commit diff
path: root/src/exec.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/exec.c
parentdash: Just zero mailsize on changemail (diff)
downloaddash-22fb2a07db173532462d90ad875a06254e932773.tar.gz
dash-22fb2a07db173532462d90ad875a06254e932773.zip
dash: Stop this stat64 nonsense
Diffstat (limited to 'src/exec.c')
-rw-r--r--src/exec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/exec.c b/src/exec.c
index 87354d4..41d772f 100644
--- a/src/exec.c
+++ b/src/exec.c
@@ -333,7 +333,7 @@ find_command(char *name, struct cmdentry *entry, int act, const char *path)
 	int idx;
 	int prev;
 	char *fullname;
-	struct stat64 statb;
+	struct stat statb;
 	int e;
 	int updatetbl;
 	struct builtincmd *bcmd;
@@ -343,7 +343,7 @@ find_command(char *name, struct cmdentry *entry, int act, const char *path)
 	if (strchr(name, '/') != NULL) {
 		entry->u.index = -1;
 		if (act & DO_ABS) {
-			while (stat64(name, &statb) < 0) {
+			while (stat(name, &statb) < 0) {
 #ifdef SYSV
 				if (errno == EINTR)
 					continue;
@@ -436,7 +436,7 @@ loop:
 			TRACE(("searchexec \"%s\": no change\n", name));
 			goto success;
 		}
-		while (stat64(fullname, &statb) < 0) {
+		while (stat(fullname, &statb) < 0) {
 #ifdef SYSV
 			if (errno == EINTR)
 				continue;