[devel] NMU: cdrecord
Dmitry V. Levin
=?iso-8859-1?q?ldv_=CE=C1_altlinux=2Eorg?=
Пн Дек 13 13:49:17 MSK 2004
On Mon, Dec 13, 2004 at 12:56:03AM +0300, Konstantin A. Lepikhov wrote:
> у ldv@ есть желание сделать это в Сизиф/updates?
Нет, это же 2.6-only change:
> --- cdrtools-2.01a37/cdrecord/cdrecord.c~ 2004-12-12 20:38:26 +0300
> +++ cdrtools-2.01a37/cdrecord/cdrecord.c 2004-12-12 20:58:26 +0300
> @@ -466,8 +466,10 @@ main(ac, av)
> /*
> * XXX Below this point we do not need root privilleges anymore.
> */
> + /* XXX Quick'n'dirty hack for linux kernel >= 2.6.8.1 compatability
> if (geteuid() != getuid()) { /* AIX does not like to do this */
> /* If we are not root */
> + /*
> #ifdef HAVE_SETREUID
> if (setreuid(-1, getuid()) < 0)
> #else
> @@ -479,6 +481,8 @@ main(ac, av)
> #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.
> @@ -983,10 +987,12 @@ if (lverbose > 2)
> * even on OS that do not support getreuid() which is *BSD
> * and SUSv3 only.
> */
> + /* XXX Quick'n'dirty hack for linux kernel >= 2.6.8.1 compatability
> 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
> @@ -1001,11 +1007,13 @@ if (lverbose > 2)
> /*
> * XXX Below this point we never need root privilleges anymore.
> */
> + /* XXX Quick'n'dirty hack for linux kernel >= 2.6.8.1 compatability
> 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");
> }
> + */
> #endif
> }
> if ((*dp->cdr_set_speed_dummy)(scgp, dp, &speed) < 0) {
--
ldv
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя : =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Тип : application/pgp-signature
Размер : 189 байтов
Описание: =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Url : <http://lists.altlinux.org/pipermail/devel/attachments/20041213/8a7822f5/attachment-0001.bin>
Подробная информация о списке рассылки Devel