Contents of /trunk/cdrtools/patches/cdrtools-2.01-scsi-remote.patch
Parent Directory | Revision Log
Revision 144 -
(show annotations)
(download)
Tue May 8 20:06:05 2007 UTC (17 years, 4 months ago) by niro
File size: 540 byte(s)
Tue May 8 20:06:05 2007 UTC (17 years, 4 months ago) by niro
File size: 540 byte(s)
-import
1 | --- cdrecord-2.01/librscg/scsi-remote.c.org 2004-08-30 16:09:33.000000000 -0600 |
2 | +++ cdrecord-2.01/librscg/scsi-remote.c 2004-08-30 16:11:06.000000000 -0600 |
3 | @@ -1071,9 +1071,9 @@ |
4 | /* |
5 | * Become 'locuser' to tell the rsh program the local user id. |
6 | */ |
7 | - if (getuid() != pw->pw_uid && |
8 | - setuid(pw->pw_uid) == -1) { |
9 | - errmsg("setuid(%lld) failed.\n", |
10 | + if ((pw->pw_uid) != geteuid() && |
11 | + seteuid(pw->pw_uid) == -1) { |
12 | + errmsg("seteuid(%lld) failed.\n", |
13 | (Llong)pw->pw_uid); |
14 | _exit(EX_BAD); |
15 | /* NOTREACHED */ |