diff --git a/src/WINNT/afsd/smb_ioctl.c b/src/WINNT/afsd/smb_ioctl.c index dd4720a402..0c6313ab07 100644 --- a/src/WINNT/afsd/smb_ioctl.c +++ b/src/WINNT/afsd/smb_ioctl.c @@ -223,6 +223,14 @@ smb_IoctlRead(smb_fid_t *fidp, smb_vc_t *vcp, smb_packet_t *inp, smb_packet_t *o smbp = (smb_t *) inp; uidp = smb_FindUID(vcp, smbp->uid, 0); if (uidp) { + if (uidp->unp) { + osi_Log3(afsd_logp, "Ioctl uid %d user %x name %s", + uidp->userID, userp, + osi_LogSaveClientString(afsd_logp, uidp->unp->name)); + } else { + osi_Log2(afsd_logp, "Ioctl uid %d user %x no name", + uidp->userID, userp); + } isSystem = smb_userIsLocalSystem(uidp); userp = smb_GetUserFromUID(uidp); if (uidp->unp) { @@ -422,7 +430,6 @@ smb_IoctlV3Read(smb_fid_t *fidp, smb_vc_t *vcp, smb_packet_t *inp, smb_packet_t iop->uidp = uidp; - code = smb_LookupTIDPath(vcp, ((smb_t *)inp)->tid, &iop->tidPathp); if (code) { if (uidp)