work around erroneous "no more files" error in winnt client
//#define NOSERVICE 1
+#define NOMOREFILESFIX 1
+
#include <afs/param.h>
#include <afs/stds.h>
namep += entryLength;
tcounter++; /* which proto entry we're looking at */
}
+#ifndef NOMOREFILESFIX
/*
* NOTE: We can determine what OS (NT4.0, W2K, W9X, etc)
* the client is running by reading the protocol signature.
*/
}
}
+ // NOMOREFILESFIX
+#endif
if (NTProtoIndex != -1) {
protoIndex = NTProtoIndex;
spacep = cm_GetSpace();
smb_StripLastComponent(spacep->data, &lastComp,
(char *)(&p->parmsp[3]));
- if (strcmp(lastComp, "\\desktop.ini") == 0) {
+ /* Make sure that lastComp is not NULL */
+ if (lastComp)
+ if (strcmp(lastComp, "\\desktop.ini") == 0) {
code = cm_NameI(cm_rootSCachep, spacep->data,
CM_FLAG_CASEFOLD
| CM_FLAG_DIRSEARCH