[ROOT] setresgid/setresuid bug is still in glibc > 2!

From: Shitov Yuriy (yuriy@nusun.jinr.ru)
Date: Thu Feb 13 2003 - 07:42:32 MET


Hi, rooters,

Compilation of root under original RedHat-8.0 was failed  for files:
./proofd/src/proofd.cxx
./rootd/src/rootd.cxx

due to unknown functions setresuid/setresgid

Problem was solved removing the following conditional compilation tag:

/* #if defined(linux) && (__GLIBC__ <= 2 && __GLIBC_MINOR__ <= 2) */
                                   ~~~~~~~~~~~~~~~~~~~~~~~~~ 
~~~~~~~~~~~~~~~ removed
#if defined(linux)
extern "C" {
   int setresgid(gid_t r, gid_t e, gid_t s);
   int setresuid(uid_t r, uid_t e, uid_t s);
}
#endif

I found that for my glibc-2.2.93 library setresgid/setresuid prototypes 
are still not defined in the unistd.h (this is known glibc bug), so tag 
pointed is obsolete now.

Best wishes,
Yuriy.



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:09 MET