* uinfo.cc (internal_getlogin): Change parameter list to reflect

that `token' is member of cygheap_user now.
        (uinfo_init): Use modified internal_getlogin.
        * syscalls.cc (seteuid): Ditto.
This commit is contained in:
Corinna Vinschen
2000-11-15 21:14:27 +00:00
parent 66c161baac
commit cb6f4dbd0c
3 changed files with 18 additions and 11 deletions

View File

@@ -1811,7 +1811,7 @@ setuid (uid_t uid)
return ret;
}
extern const char *internal_getlogin (cygheap_user &user, HANDLE token);
extern const char *internal_getlogin (cygheap_user &user);
/* seteuid: standards? */
extern "C" int
@@ -1851,12 +1851,12 @@ seteuid (uid_t uid)
}
cygheap_user user;
/* token is used in internal_getlogin() to determine if
/* user.token is used in internal_getlogin() to determine if
impersonation is active. If so, the token is used for
retrieving user's SID. */
HANDLE token = cygheap->user.impersonated ? cygheap->user.token
: INVALID_HANDLE_VALUE;
struct passwd *pw_cur = getpwnam (internal_getlogin (user, token));
user.token = cygheap->user.impersonated ? cygheap->user.token
: INVALID_HANDLE_VALUE;
struct passwd *pw_cur = getpwnam (internal_getlogin (user));
if (pw_cur != pw_new)
{
debug_printf ("Diffs!!! token: %d, cur: %d, new: %d, orig: %d",