Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2007-02-23 18:15:50 +0300
committerCorinna Vinschen <corinna@vinschen.de>2007-02-23 18:15:50 +0300
commita76877e977ff264e44c4d9278920fe511fc73dd4 (patch)
tree77a3e569e9e5a248cf845f89d7e8eb6ba6193f2f /winsup/cygwin/passwd.cc
parent9fa43ff6c61626df04f9b87c09f5233ba07a608d (diff)
Throughout remove all usage of wincap.has_security.
* environ.cc (environ_init): Drop setting allow_ntsec here. * grp.cc (initgroups32): Drop usage of label "out". * security.cc (allow_ntsec): Set to true by default. * syscalls.cc (seteuid32): Remove label success_9x. * wincap.cc: Remove has_security throughout. * wincap.h: Ditto.
Diffstat (limited to 'winsup/cygwin/passwd.cc')
-rw-r--r--winsup/cygwin/passwd.cc23
1 files changed, 9 insertions, 14 deletions
diff --git a/winsup/cygwin/passwd.cc b/winsup/cygwin/passwd.cc
index 127d32380..0d30385ec 100644
--- a/winsup/cygwin/passwd.cc
+++ b/winsup/cygwin/passwd.cc
@@ -1,6 +1,6 @@
/* passwd.cc: getpwnam () and friends
- Copyright 1996, 1997, 1998, 2001, 2002, 2003 Red Hat, Inc.
+ Copyright 1996, 1997, 1998, 2001, 2002, 2003, 2007 Red Hat, Inc.
This file is part of Cygwin.
@@ -58,19 +58,14 @@ pwdgrp::read_passwd ()
char strbuf[128] = "";
bool searchentry = true;
struct passwd *pw;
-
- if (wincap.has_security ())
- {
- /* must be static */
- static char NO_COPY pretty_ls[] = "????????:*:-1:-1:";
- add_line (pretty_ls);
- cygsid tu = cygheap->user.sid ();
- tu.string (strbuf);
- if (myself->uid == ILLEGAL_UID)
- searchentry = !internal_getpwsid (tu);
- }
- else if (myself->uid == ILLEGAL_UID)
- searchentry = !internal_getpwuid (DEFAULT_UID);
+ /* must be static */
+ static char NO_COPY pretty_ls[] = "????????:*:-1:-1:";
+
+ add_line (pretty_ls);
+ cygsid tu = cygheap->user.sid ();
+ tu.string (strbuf);
+ if (myself->uid == ILLEGAL_UID)
+ searchentry = !internal_getpwsid (tu);
if (searchentry &&
(!(pw = internal_getpwnam (cygheap->user.name ())) ||
(myself->uid != ILLEGAL_UID &&