Revert accidental previous login.

This commit is contained in:
Corinna Vinschen
2010-09-28 14:49:31 +00:00
parent 2f1f8815c0
commit 2a9b4b7aa0
7 changed files with 19 additions and 109 deletions

View File

@@ -66,8 +66,7 @@ pwdgrp::read_passwd ()
if (!user_shared->cb || myself->uid == ILLEGAL_UID)
searchentry = !internal_getpwsid (tu);
if (searchentry
&& (!cygheap->user.name ()
|| !(pw = internal_getpwnam (cygheap->user.name ()))
&& (!(pw = internal_getpwnam (cygheap->user.name ()))
|| !user_shared->cb
|| (myself->uid != ILLEGAL_UID
&& myself->uid != (__uid32_t) pw->pw_uid
@@ -76,7 +75,7 @@ pwdgrp::read_passwd ()
static char linebuf[1024]; // must be static and
// should not be NO_COPY
snprintf (linebuf, sizeof (linebuf), "%s:*:%lu:%lu:,%s:%s:/bin/sh",
cygheap->user.name () ?: "",
cygheap->user.name (),
(!user_shared->cb || myself->uid == ILLEGAL_UID)
? UNKNOWN_UID : myself->uid,
!user_shared->cb ? UNKNOWN_GID : myself->gid,