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>2016-06-15 20:48:43 +0300
committerCorinna Vinschen <corinna@vinschen.de>2016-06-15 20:48:43 +0300
commit747b3f44e3799e6db4e49423875f2807e392205d (patch)
tree43d3e9ad8ac34fd071c734ff5a8c3e6792c60271 /winsup/cygwin
parent5881f0c0c8f4ea4b493fa20f017265b48a67af24 (diff)
uinfo.cc: More comment fixes, remove unused testing code.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin')
-rw-r--r--winsup/cygwin/uinfo.cc16
1 files changed, 4 insertions, 12 deletions
diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc
index c6946d83d..04ae23ac9 100644
--- a/winsup/cygwin/uinfo.cc
+++ b/winsup/cygwin/uinfo.cc
@@ -44,13 +44,13 @@ cygheap_user::init ()
WCHAR user_name[UNLEN + 1];
DWORD user_name_len = UNLEN + 1;
- /* This code is only run if a Cygwin process gets started by a native
- Win32 process. We try to get the username from the environment,
+ /* This method is only called if a Cygwin process gets started by a
+ native Win32 process. Try to get the username from the environment,
first USERNAME (Win32), then USER (POSIX). If that fails (which is
very unlikely), it only has an impact if we don't have an entry in
/etc/passwd for this user either. In that case the username sticks
to "unknown". Since this is called early in initialization, and
- since we don't want pull in a dependency to any other DLL except
+ since we don't want to pull in a dependency to any other DLL except
ntdll and kernel32 at this early stage, don't call GetUserName,
GetUserNameEx, NetWkstaUserGetInfo, etc. */
if (GetEnvironmentVariableW (L"USERNAME", user_name, user_name_len)
@@ -221,7 +221,7 @@ uinfo_init ()
return;
if (!child_proc_info)
- internal_getlogin (cygheap->user); /* Set the cygheap->user. */
+ internal_getlogin (cygheap->user); /* Set cygheap->user. */
/* Conditions must match those in spawn to allow starting child
processes with ruid != euid and rgid != egid. */
else if (cygheap->user.issetuid ()
@@ -644,14 +644,6 @@ cygheap_pwdgrp::init ()
grp_src = (NSS_SRC_FILES | NSS_SRC_DB);
prefix = NSS_PFX_AUTO;
separator[0] = L'+';
-#if 0
- home_scheme[0].method = NSS_SCHEME_CYGWIN;
- home_scheme[1].method = NSS_SCHEME_DESC;
- shell_scheme[0].method = NSS_SCHEME_CYGWIN;
- shell_scheme[1].method = NSS_SCHEME_DESC;
- gecos_scheme[0].method = NSS_SCHEME_CYGWIN;
- gecos_scheme[1].method = NSS_SCHEME_DESC;
-#endif
enums = (ENUM_CACHE | ENUM_BUILTIN);
enum_tdoms = NULL;
caching = true; /* INTERNAL ONLY */