* security.cc: Fix a few more strace_prints.

This commit is contained in:
Corinna Vinschen 2004-09-03 08:18:41 +00:00
parent 0cd9f74fa5
commit eea5dd9707
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2004-09-03 Corinna Vinschen <corinna@vinschen.de>
* security.cc: Fix a few more strace_prints.
2004-09-02 Christopher Faylor <cgf@timesys.com> 2004-09-02 Christopher Faylor <cgf@timesys.com>
Regularize most strace_prints throughout so that %E is always preceded Regularize most strace_prints throughout so that %E is always preceded

View File

@ -80,7 +80,7 @@ extract_nt_dom_user (const struct passwd *pw, char *domain, char *user)
domain[0] = 0; domain[0] = 0;
strlcpy (user, pw->pw_name, UNLEN + 1); strlcpy (user, pw->pw_name, UNLEN + 1);
debug_printf ("pw_gecos = %x (%s)", pw->pw_gecos, pw->pw_gecos); debug_printf ("pw_gecos %x (%s)", pw->pw_gecos, pw->pw_gecos);
if ((d = strstr (pw->pw_gecos, "U-")) != NULL && if ((d = strstr (pw->pw_gecos, "U-")) != NULL &&
(d == pw->pw_gecos || d[-1] == ',')) (d == pw->pw_gecos || d[-1] == ','))
@ -1109,11 +1109,11 @@ read_sd (const char *file, security_descriptor &sd)
NULL, 0, &len) NULL, 0, &len)
&& GetLastError () != ERROR_INSUFFICIENT_BUFFER) && GetLastError () != ERROR_INSUFFICIENT_BUFFER)
{ {
debug_printf ("file = %s", file); debug_printf ("file %s", file);
__seterrno (); __seterrno ();
return -1; return -1;
} }
debug_printf ("file = %s: len=%d", file, len); debug_printf ("file %s: len %d", file, len);
if (!sd.malloc (len)) if (!sd.malloc (len))
{ {
set_errno (ENOMEM); set_errno (ENOMEM);
@ -1313,7 +1313,7 @@ get_info_from_sd (PSECURITY_DESCRIPTOR psd, mode_t *attribute,
else else
get_attribute_from_acl (attribute, acl, owner_sid, group_sid, grp_member); get_attribute_from_acl (attribute, acl, owner_sid, group_sid, grp_member);
syscall_printf ("%sACL = %x, uid %d, gid %d", syscall_printf ("%sACL %x, uid %d, gid %d",
(!acl_exists || !acl)?"NO ":"", *attribute, uid, gid); (!acl_exists || !acl)?"NO ":"", *attribute, uid, gid);
return; return;
} }