From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 13 Dec 2004 13:49:17 +0300 From: "Dmitry V. Levin" To: ALT Linux Devel Mailing List Subject: Re: [devel] NMU: cdrecord Message-ID: <20041213104917.GF6127@basalt.office.altlinux.org> Mail-Followup-To: ALT Linux Devel Mailing List References: <20041212215603.GA29983@lks.home> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Qf1oXS95uex85X0R" Content-Disposition: inline In-Reply-To: <20041212215603.GA29983@lks.home> X-fingerprint: 9658 398D 181B 1200 8FC5 26B8 F6F8 846B C1E2 3429 X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2004 10:49:17 -0000 Archived-At: List-Archive: List-Post: --Qf1oXS95uex85X0R Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 13, 2004 at 12:56:03AM +0300, Konstantin A. Lepikhov wrote: > =D5 ldv@ =C5=D3=D4=D8 =D6=C5=CC=C1=CE=C9=C5 =D3=C4=C5=CC=C1=D4=D8 =DC=D4= =CF =D7 =F3=C9=DA=C9=C6/updates? =EE=C5=D4, =DC=D4=CF =D6=C5 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 >=3D 2.6.8.1 compatability= =20 > if (geteuid() !=3D 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"); > } > + */ > +=09 > /* > * 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 >=3D 2.6.8.1 compatability > if (oeuid !=3D 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 >=3D 2.6.8.1 compatability > if (geteuid() !=3D 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) { --=20 ldv --Qf1oXS95uex85X0R Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFBvXOs9viEa8HiNCkRAo37AJ9yOUBXKaCtAYgrF96jhhpbgYKYeQCdE6tF PT+cJ1DuoB2q4QTcpE9C704= =3qP3 -----END PGP SIGNATURE----- --Qf1oXS95uex85X0R--