--- cdrtools-2.01/cdrecord/cdrecord.c.orig 2004-10-28 12:44:39.927882183 -0400 +++ cdrtools-2.01/cdrecord/cdrecord.c 2004-10-28 13:00:02.627948467 -0400 @@ -492,8 +492,11 @@ /* * XXX Below this point we do not need root privilleges anymore. */ - if (geteuid() != getuid()) { /* AIX does not like to do this */ + + // fixing issue with kernel >= 2.6.8.1 + //if (geteuid() != getuid()) { /* AIX does not like to do this */ /* If we are not root */ + /* #ifdef HAVE_SETREUID if (setreuid(-1, getuid()) < 0) #else @@ -505,6 +508,8 @@ #endif comerr("Panic cannot set back effective uid.\n"); } + */ + /* * WARNING: We now are no more able to do any privilleged operation * unless we have been called by root. @@ -1009,10 +1014,14 @@ * even on OS that do not support getreuid() which is *BSD * and SUSv3 only. */ + + // fixing issue with kernel >= 2.6.8.1 + /* if (oeuid != getuid()) { if (setreuid(-1, oeuid) < 0) errmsg("Could set back effective uid.\n"); } + */ #endif /* * fork() here to start the extra process needed for @@ -1027,11 +1036,14 @@ /* * XXX Below this point we never need root privilleges anymore. */ - if (geteuid() != getuid()) { /* AIX does not like to do this */ + // fixing issue with kernel >= 2.6.8.1 + //if (geteuid() != getuid()) { /* AIX does not like to do this */ /* If we are not root */ + /* if (setreuid(-1, getuid()) < 0) comerr("Panic cannot set back effective uid.\n"); } + */ #endif } if ((*dp->cdr_set_speed_dummy)(scgp, dp, &speed) < 0) {