diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-02-06 14:01:54 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-02-06 14:01:54 +0000 |
commit | 565e80155b9e0f3f3fad8a85617d26c797514017 (patch) | |
tree | 8613a6bbba76b550c1c71ba79fc165a92e16a0ac /winsup/cygwin/passwd.cc | |
parent | f865f0c4799f3e92ce43743bd204437c0d7da45c (diff) | |
download | newlib-565e80155b9e0f3f3fad8a85617d26c797514017.zip newlib-565e80155b9e0f3f3fad8a85617d26c797514017.tar.gz newlib-565e80155b9e0f3f3fad8a85617d26c797514017.tar.bz2 |
* security.h: Introduce names UNKNOWN_UID and UNKNOWN_GID and delete
declaration of is_grp_member.
* uinfo.cc (internal_getlogin): Use UNKNOWN_GID.
* passwd.cc (pwdgrp::read_passwd): Use UNKNOWN_UID.
* grp.cc (pwdgrp::read_group): Change group name to provide better
feedback.
(getgrgid): Use gid16togid32.
* sec_helper.cc (is_grp_member): Delete.
Diffstat (limited to 'winsup/cygwin/passwd.cc')
-rw-r--r-- | winsup/cygwin/passwd.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/passwd.cc b/winsup/cygwin/passwd.cc index ad784ad..cdb73b0 100644 --- a/winsup/cygwin/passwd.cc +++ b/winsup/cygwin/passwd.cc @@ -87,7 +87,7 @@ pwdgrp::read_passwd () (void) cygheap->user.ontherange (CH_HOME, NULL); snprintf (linebuf, sizeof (linebuf), "%s:*:%lu:%lu:,%s:%s:/bin/sh", cygheap->user.name (), - myself->uid == ILLEGAL_UID ? DEFAULT_UID_NT : myself->uid, + myself->uid == ILLEGAL_UID ? UNKNOWN_UID : myself->uid, myself->gid, strbuf, getenv ("HOME") ?: ""); debug_printf ("Completing /etc/passwd: %s", linebuf); |