From 6e2dd6e65cae4157538c29fb4362da4d15406b0e Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Wed, 15 Aug 2012 00:53:21 -0400 Subject: [PATCH] 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 --- src/WINNT/afsd/afsd_init.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/WINNT/afsd/afsd_init.c b/src/WINNT/afsd/afsd_init.c index 714ac2a..4d523b6 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; -- 1.7.1