4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-21 16:26:12 +08:00

* uinfo.cc (pwdgrp::load): Regularize strace output. Add warning for

CreateFile failure.
This commit is contained in:
Christopher Faylor 2003-01-26 06:42:40 +00:00
parent 989c97fe14
commit 9a75162166
10 changed files with 126 additions and 118 deletions

View File

@ -1,3 +1,8 @@
2003-01-26 Christopher Faylor <cgf@redhat.com>
* uinfo.cc (pwdgrp::load): Regularize strace output. Add warning for
CreateFile failure.
2003-01-26 Christopher Faylor <cgf@redhat.com>
* passwd.cc (pwdgrp::parse_passwd): Eliminate use of memset. The

View File

@ -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)
{
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;
}