Index: windows-NT/win32.cpp =================================================================== RCS file: /cvs/cvsnt/windows-NT/win32.c,v retrieving revision 1.72.2.150.6.53 diff -c -r1.72.2.150.6.53 win32.cpp *** windows-NT/win32.cpp 31 May 2012 02:47:32 -0000 1.72.2.150.6.53 --- windows-NT/win32.cpp 20 Sep 2012 23:32:51 -0000 *************** *** 1347,1352 **** --- 1347,1353 ---- { OSVERSIONINFO osv; + TRACE(3,"Not performing any case sensitivity work (serv_active<0)"); osv.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); GetVersionEx(&osv); if (osv.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS) *************** *** 1389,1400 **** --- 1390,1405 ---- /* By default we run case insensitive. This can be switched dynamically at server startup or if the client starts in a case sensitive directory */ + TRACE(3,"By default we run case insensitive."); __set_case_sensitive(0); #ifdef SERVER_SUPPORT if(serv_active && !CGlobalSettings::GetGlobalValue("cvsnt","PServer","CaseSensitive",buffer,sizeof(buffer))) + { + TRACE(3,"Override case insensitive, __set_case_sensitive=%d.",(int)atoi(buffer)); __set_case_sensitive(atoi(buffer)); + } #endif #if !defined(CVS95) *************** *** 1444,1449 **** --- 1449,1456 ---- __set_case_sensitive(0); TRACE(3,"Couldn't connect to cvs filter driver - switching to case insensitive"); } + else + TRACE(3,"Filter (CVSFLT) opened OK."); } #endif Index: src/main.cpp =================================================================== RCS file: /cvs/cvsnt/src/main.c,v retrieving revision 1.71.2.151.6.82 diff -c -r1.71.2.151.6.82 main.cpp *** src/main.cpp 19 Sep 2012 07:32:58 -0000 1.71.2.151.6.82 --- src/main.cpp 20 Sep 2012 23:31:18 -0000 *************** *** 474,479 **** --- 474,481 ---- " --antivirus Try and work in a way that causes the least problems with\n" " Anti Virus software\n", " --noantivirus Disables the --antivirus setting.\n", + " --cvsflt Enable case sensitive client (requires CVSFLT).\n", + " --autocvsflt automatically register directories as case sensitive (requires CVSFLT).\n", #endif " --nowait Don't try to avoid timestamp issues by sleeping" "\n", *************** *** 935,940 **** --- 937,944 ---- {"crash", 0, NULL, 14}, {"systray", 0, NULL, 15}, {"doublemv", 0, NULL, 16}, + {"cvsflt", 0, NULL, 17}, + {"autocvsflt", 0, NULL, 18}, #endif {"readonly",0,NULL,257}, {"utf8",0,NULL,258}, *************** *** 1153,1158 **** --- 1157,1168 ---- break; case 16: double_rename = 1; + break; + case 17: + __set_case_sensitive(1); + break; + case 18: + __set_case_sensitive(2); break; #endif #if defined(WIN32)