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:
parent
989c97fe14
commit
9a75162166
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user