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 */ |