]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - posix/execvp.c
update from main archive
[thirdparty/glibc.git] / posix / execvp.c
index a1fcb791faf1af4c62475187859d372a318c70ba..400e082937a54a66b9a2305f72a681308133e05c 100644 (file)
@@ -135,7 +135,7 @@ execvp (file, argv)
 
   if (got_eacces)
     /* At least one failure was due to permissions, so report that error.  */
-    errno = EACCES;
+    __set_errno (EACCES);
 
   /* Return the error from the last attempt (probably ENOENT).  */
   return -1;