Loading...
gen/FreeBSD/exec.c Libc-1725.40.4 Libc-1725.0.11
--- Libc/Libc-1725.40.4/gen/FreeBSD/exec.c
+++ Libc/Libc-1725.0.11/gen/FreeBSD/exec.c
@@ -293,13 +293,8 @@
 	if (eacces)
 		errno = EACCES;
 #ifdef __APPLE__
-	/*
-	 * Preserve errno from execve(2) if it wasn't a PATH search, or
-	 * if it was a PATH search and we bailed out early.  Note that every
-	 * branch in the loop jumps to the `done` label to preserve errno, so
-	 * this is more of a defensive check.
-	 */
-	else if (path != NULL && op == NULL)
+	/* Preserve errno from execve(2) if it wasn't a PATH search. */
+	else if (path != NULL)
 #else
 	else
 #endif