This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] [BZ #18433] Check file access/existence before forking.
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Navid Rahimi <rahimi dot nv at gmail dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Fri, 11 Sep 2015 13:18:30 -0700 (PDT)
- Subject: Re: [PATCH] [BZ #18433] Check file access/existence before forking.
- Authentication-results: sourceware.org; auth=none
- References: <55F19819 dot 3010601 at gmail dot com>
access has the wrong semantics. You could use euidaccess. But then that
will has the wrong semantics if POSIX_SPAWN_RESETIDS was used. It quickly
gets quite hairy. Trying to match the semantics that execve will use after
everything that posix_spawn might be doing in the child side is a losing
battle.