Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 63187
Collapse All | Expand All

(-)cdrecord-2.01/librscg/scsi-remote.c.org (-3 / +3 lines)
Lines 1071-1079 Link Here
1071
		/*
1071
		/*
1072
		 * Become 'locuser' to tell the rsh program the local user id.
1072
		 * Become 'locuser' to tell the rsh program the local user id.
1073
		 */
1073
		 */
1074
		if (getuid() != pw->pw_uid &&
1074
		if ((pw->pw_uid) != geteuid() &&
1075
		    setuid(pw->pw_uid) == -1) {
1075
		    seteuid(pw->pw_uid) == -1) {
1076
			errmsg("setuid(%lld) failed.\n",
1076
			errmsg("seteuid(%lld) failed.\n",
1077
							(Llong)pw->pw_uid);
1077
							(Llong)pw->pw_uid);
1078
			_exit(EX_BAD);
1078
			_exit(EX_BAD);
1079
			/* NOTREACHED */
1079
			/* NOTREACHED */

Return to bug 63187