Damit ihr mit Kernel >= 2.6.8 brennen könnt, braucht ihr k3b >=0.11.15 und mit folgendem Patch gepatchte cdrtools:
Code:
--- cdrtools-2.01/cdrecord/cdrecord.c.fixed 2004-08-27 10:24:17.000000000 +0200
+++ cdrtools-2.01/cdrecord/cdrecord.c 2004-03-07 23:43:08.000000000 +0100
@@ -452,8 +452,11 @@ main(ac, av)
/*
* XXX Below this point we do not need root privilleges anymore.
*/
+ /*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
@@ -465,7 +468,9 @@ main(ac, av)
#endif
comerr("Panic cannot set back effective uid.\n");
}
- /*
+ */
+ /*fixing issue with kernel >= 2.6.8.1*/
+ /*
* WARNING: We now are no more able to do any privilleged operation
* unless we have been called by root.
*
@@ -955,10 +960,13 @@ if (lverbose > 2)
* 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");
- }
+ }*/
+ /*fixing issue with kernel >= 2.6.8.1 */
#endif
/*
* fork() here to start the extra process needed for
@@ -973,11 +981,13 @@ if (lverbose > 2)
/*
* 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)
+ /* if (setreuid(-1, getuid()) < 0)
comerr("Panic cannot set back effective uid.\n");
- }
+ } */
+ /*fixing issue with kernel >= 2.6.8.1 */
#endif
}
if ((*dp->cdr_set_speed_dummy)(scgp, dp, &speed) < 0) {
Allerdings klappt das AudioCD-Brennen aufgrund eines Memory Leaks offiziell erst wieder im 2.6.9-rc2, allerdings habe ich immernoch Probleme.
Shutdown
Lesezeichen