From: Jeffrey Altman Date: Sat, 21 Aug 2010 04:22:22 +0000 (-0400) Subject: Windows: unix modes represented in octal X-Git-Tag: upstream/1.8.0_pre1^2~4861 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=a97282bf76730fd05c2365aa1c58ce96174efd37;p=packages%2Fo%2Fopenafs.git Windows: unix modes represented in octal Since unix mode bits are represented in octal in most cases make sure we log them that way. LICENSE MIT Change-Id: Ia8106c7bbd3230380c7efa437b6eb0a90398bda3 Reviewed-on: http://gerrit.openafs.org/2652 Tested-by: BuildBot Reviewed-by: Derrick Brashear Tested-by: Jeffrey Altman Reviewed-by: Jeffrey Altman --- diff --git a/src/WINNT/afsd/cm_access.c b/src/WINNT/afsd/cm_access.c index b9ebaed3a..de36dcadb 100644 --- a/src/WINNT/afsd/cm_access.c +++ b/src/WINNT/afsd/cm_access.c @@ -94,7 +94,7 @@ int cm_HaveAccessRights(struct cm_scache *scp, struct cm_user *userp, afs_uint32 if (scp->fileType > 0 && scp->fileType != CM_SCACHETYPE_DIRECTORY) { /* check mode bits */ if ((scp->unixModeBits & 0400) == 0) { - osi_Log2(afsd_logp,"cm_HaveAccessRights UnixMode removing READ scp 0x%p unix 0x%x", + osi_Log2(afsd_logp,"cm_HaveAccessRights UnixMode removing READ scp 0x%p unix 0%o", scp, scp->unixModeBits); *outRightsp &= ~PRSFS_READ; }