Группа :: Архивирование/Создание CD
Пакет: cdrtools
Главная Изменения Спек Патчи Загрузить Bugs and FR
Патч: cdrtools-2.01-alt-rcmdrsh.patch
--- cdrtools-2.01/librscg/scsi-remote.c.orig 2004-01-15 03:25:09 +0300
+++ cdrtools-2.01/librscg/scsi-remote.c 2004-08-24 01:31:10 +0400
@@ -516,7 +516,7 @@ rscsigetconn(scgp, host)
char *p;
char *rscsi;
char *rsh;
- int rscsisock;
+ int rscsisock = -1;
char *rscsipeer;
char rscsiuser[128];
@@ -1071,7 +1071,7 @@ _rcmdrsh(ahost, inport, locuser, remuser
/*
* Become 'locuser' to tell the rsh program the local user id.
*/
- if (getuid() != pw->pw_uid &&
+ if (getuid() != geteuid() &&
setuid(pw->pw_uid) == -1) {
errmsg("setuid(%lld) failed.\n",
(Llong)pw->pw_uid);