* 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>
|
2003-01-26 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* passwd.cc (pwdgrp::parse_passwd): Eliminate use of memset. The
|
* 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,
|
HANDLE fh = CreateFile (pc, GENERIC_READ, wincap.shared (), NULL,
|
||||||
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0);
|
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0);
|
||||||
if (fh == INVALID_HANDLE_VALUE)
|
if (fh == INVALID_HANDLE_VALUE)
|
||||||
|
{
|
||||||
|
paranoid_printf ("%s CreateFile failed, %E");
|
||||||
res = failed;
|
res = failed;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DWORD size = GetFileSize (fh, NULL), read_bytes;
|
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;
|
initialized = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue