Skip to content

Commit

Permalink
Merge pull request #39 from dscho/i686-posix_spawn
Browse files Browse the repository at this point in the history
posix_spawn: fix get/set uid/gid calls for 32 bit
  • Loading branch information
dscho authored Jan 17, 2022
2 parents d3172a7 + 242d012 commit b600e8e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions newlib/libc/posix/posix_spawn.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,17 @@ typedef struct __posix_spawn_file_actions_entry {
* Spawn routines
*/

#if defined (__CYGWIN__) && defined (__i386__)
extern int getgid32 (void);
extern int getuid32 (void);
extern int setegid32 (gid_t egid);
extern int seteuid32 (uid_t euid);
#define setegid setegid32
#define seteuid seteuid32
#define getgid getgid32
#define getuid getuid32
#endif

static int
process_spawnattr(const posix_spawnattr_t sa)
{
Expand Down

0 comments on commit b600e8e

Please sign in to comment.