/* copy to Change Time */
*((FILETIME *)dptr) = ft;
+ dptr += 24;
+
+ /* merge in hidden attribute */
+ if ( patchp->flags & SMB_DIRLISTPATCH_DOTFILE ) {
+ *((u_long *)dptr) = SMB_ATTR_HIDDEN;
+ }
+ dptr += 4;
} else {
/* 1969-12-31 23:59:58 +00*/
/* copy out mod time */
shortTemp = dosTime & 0xffff;
*((u_short *)dptr) = shortTemp;
- dptr += 2;
+ dptr += 10;
+
+ /* merge in hidden (dot file) attribute */
+ if ( patchp->flags & SMB_DIRLISTPATCH_DOTFILE ) {
+ attr == SMB_ATTR_HIDDEN;
+ *dptr++ = attr & 0xff;
+ *dptr++ = (attr >> 8) & 0xff;
+ }
+
}
continue;
}