Branch: Tag:

2000-05-20

2000-05-20 13:31:23 by Henrik Grubbström (Grubba) <grubba@grubba.org>

BROKEN_LINUX_THREAD_EUID ==> HAVE_BROKEN_LINUX_THREAD_EUID.

Rev: src/threads.c:1.124

1:   #include "global.h" - RCSID("$Id: threads.c,v 1.123 2000/05/20 13:28:36 grubba Exp $"); + RCSID("$Id: threads.c,v 1.124 2000/05/20 13:31:23 grubba Exp $");      int num_threads = 1;   int threads_disabled = 0;
219:   {    struct object *id;    struct array *args; - #ifdef BROKEN_LINUX_THREAD_EUID + #ifdef HAVE_BROKEN_LINUX_THREAD_EUID    int euid, egid; - #endif /* BROKEN_LINUX_THREAD_EUID */ + #endif /* HAVE_BROKEN_LINUX_THREAD_EUID */   };      struct thread_local
566:    THREADS_FPRINTF(0, (stderr,"THREADS_DISALLOW() Thread %08x created...\n",    (unsigned int)arg.id));    - #ifdef BROKEN_LINUX_THREAD_EUID + #ifdef HAVE_BROKEN_LINUX_THREAD_EUID    /* Work-around for Linux's pthreads not propagating the    * effective uid & gid.    */
574: Inside #if defined(BROKEN_LINUX_THREAD_EUID)
   setegid(arg->egid);    seteuid(arg->euid);    } - #endif /* BROKEN_LINUX_THREAD_EUID */ + #endif /* HAVE_BROKEN_LINUX_THREAD_EUID */       if((tmp=mt_lock_interpreter()))    fatal("Failed to lock interpreter, return value=%d, errno=%d\n",tmp,
691:    arg->id=clone_object(thread_id_prog,0);    OBJ2THREAD(arg->id)->status=THREAD_RUNNING;    - #ifdef BROKEN_LINUX_THREAD_EUID + #ifdef HAVE_BROKEN_LINUX_THREAD_EUID    arg->euid = geteuid();    arg->egid = getegid(); - #endif /* BROKEN_LINUX_THREAD_EUID */ + #endif /* HAVE_BROKEN_LINUX_THREAD_EUID */       do {    tmp = th_create(& OBJ2THREAD(arg->id)->id,