From: Jeffrey Altman Date: Wed, 15 Aug 2012 04:53:21 +0000 (-0400) Subject: Windows: disable short names on Win7 and 2008 R2 X-Git-Tag: upstream/1.8.0_pre1^2~2088 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=6e2dd6e65cae4157538c29fb4362da4d15406b0e;p=packages%2Fo%2Fopenafs.git Windows: disable short names on Win7 and 2008 R2 After listening to a presentation from Microsoft's file system team and speaking with anti-virus vendors, it is not only safe to disable ShortNames on non-boot volumes in Win7 and 2008 R2 but it is a definite win for performance, stability and security of the system. Change-Id: I706a8a17b0ae76189aeebaf254c8c70739d12f09 Reviewed-on: http://gerrit.openafs.org/7989 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- diff --git a/src/WINNT/afsd/afsd_init.c b/src/WINNT/afsd/afsd_init.c index 714ac2a9d..4d523b612 100644 --- a/src/WINNT/afsd/afsd_init.c +++ b/src/WINNT/afsd/afsd_init.c @@ -1376,10 +1376,10 @@ afsd_InitCM(char **reasonP) if (code == ERROR_SUCCESS) { cm_shortNames = (unsigned short) dwValue; } else { - /* disable by default on Win8 and Server 2008 R2 */ + /* disable by default on Win7, Win 8, Server 2008 R2 and Server 2012 */ if (osVersion.dwMajorVersion > 6 || osVersion.dwMajorVersion == 6 && - osVersion.dwMinorVersion >= 2) + osVersion.dwMinorVersion >= 1) cm_shortNames = 0; else cm_shortNames = 1;