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:
authorChristopher Faylor <me@cgf.cx>2003-01-26 09:42:40 +0300
committerChristopher Faylor <me@cgf.cx>2003-01-26 09:42:40 +0300
commit9a751621661bab473334333b4422599bc26164a2 (patch)
tree742a43bdccdc8dec7c86ddf6813f6f82aa465c5a /winsup/cygwin/uinfo.cc
parent989c97fe141b5869c3dfd438683b14a8bc8453ca (diff)
* uinfo.cc (pwdgrp::load): Regularize strace output. Add warning for
CreateFile failure.
Diffstat (limited to 'winsup/cygwin/uinfo.cc')
-rw-r--r--winsup/cygwin/uinfo.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc
index bc1680374..82712d9d4 100644
--- a/winsup/cygwin/uinfo.cc
+++ b/winsup/cygwin/uinfo.cc
@@ -107,7 +107,7 @@ uinfo_init ()
if (!child_proc_info)
internal_getlogin (cygheap->user); /* Set the cygheap->user. */
else
- CloseHandle (cygheap->user.token);
+ CloseHandle (cygheap->user.token);
cygheap->user.set_orig_sid (); /* Update the original sid */
cygheap->user.token = INVALID_HANDLE_VALUE; /* No token present */
}
@@ -469,7 +469,10 @@ pwdgrp::load (const char *posix_fname)
HANDLE fh = CreateFile (pc, GENERIC_READ, wincap.shared (), NULL,
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0);
if (fh == INVALID_HANDLE_VALUE)
- res = failed;
+ {
+ paranoid_printf ("%s CreateFile failed, %E");
+ res = failed;
+ }
else
{
DWORD size = GetFileSize (fh, NULL), read_bytes;
@@ -497,7 +500,7 @@ pwdgrp::load (const char *posix_fname)
}
}
- debug_printf ("load of %s %s", posix_fname, res);
+ debug_printf ("%s load %s", posix_fname, res);
initialized = true;
return;
}