Windows: Make default mode bits configurable
authorAsanka Herath <asanka@secure-endpoints.com>
Sat, 20 Mar 2010 20:46:05 +0000 (16:46 -0400)
committerJeffrey Altman <jaltman@openafs.org>
Tue, 23 Mar 2010 21:31:10 +0000 (14:31 -0700)
commitb0a3d581a6cd20f3ac77212685b1645431bcb7ef
treebf1a69d163ba831b45a0c6cd1c0c7510ec45e2dd
parentafa12e265dbf4c7dd83b85b2b6f532992da46e5f
Windows: Make default mode bits configurable

Mode bits aren't directly exposed by the Win32 API. We were leaving
them to default to 0777 when creating new files and directories.

This patch introduces two configuration parameters;
'UnixModeFileDefault' and 'UnixModeDirDefault' which are DWORD
registry entries that are used to set the initial mode bits.

If the values are set to 0, then the behavior is identical to what we
had before.

Change-Id: I7822141aab1e12cc8e151be771f779284fa68465
Reviewed-on: http://gerrit.openafs.org/1602
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Asanka Herath <asanka@secure-endpoints.com>
Tested-by: Asanka Herath <asanka@secure-endpoints.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
src/WINNT/afsd/afsd_init.c
src/WINNT/afsd/smb.c
src/WINNT/afsd/smb.h
src/WINNT/afsd/smb3.c