* Fix the Hiding of dot files. attributes were computed but never applied
due to typo during merge
* Prevent crashing during service shutdown by power management thread
case WAIT_OBJECT_0:
// termination signaled
RevertToSelf();
+ Sleep(500);
ExitThread(0);
break;
char output[1024];
int i;
+ if (buf_hashTablepp == NULL)
+ return -1;
+
lock_ObtainRead(&buf_globalLock);
sprintf(output, "%s - dumping buf_HashTable - buf_hashSize=%d\n", cookie, buf_hashSize);
/* Copy attributes */
lattr = smb_ExtAttributes(scp);
- *((u_long *)dptr) = lattr;
/* merge in hidden (dot file) attribute */
if( patchp->flags & SMB_DIRLISTPATCH_DOTFILE )
lattr |= SMB_ATTR_HIDDEN;
+ *((u_long *)dptr) = lattr;
dptr += 4;
}
else {