* grp.cc: Eliminate MAX_DOMAIN_NAME define.
(read_etc_group): Substitute MAX_DOMAIN_NAME by INTERNET_MAX_HOST_NAME_LENGTH. * passwd.cc (parse_pwd): Don't force pw_name to be lower case. * sec_helper.cc: Substitute MAX_USER_NAME by UNLEN, MAX_COMPUTERNAME_LENGTH by INTERNET_MAX_HOST_NAME_LENGTH throughout. (lookup_name): Slight cleanup. * security.cc (alloc_sd): Substitute MAX_USER_NAME by UNLEN. * security.h: Define DEFAULT_UID as DOMAIN_USER_RID_ADMIN and DEFAULT_GID as DOMAIN_ALIAS_RID_ADMINS. * shared.cc (memory_init): Substitute MAX_USER_NAME by UNLEN. * thread.h: Ditto. * uinfo.cc (internal_getlogin): Substitute MAX_USER_NAME by UNLEN. Substitute MAX_COMPUTERNAME_LENGTH and MAX_HOST_NAME by INTERNET_MAX_HOST_NAME_LENGTH. * winsup.h: Include lmcons.h. Eliminate MAX_USER_NAME and MAX_HOST_NAME. Move DEFAULT_UID and DEFAULT_GID to security.h.
This commit is contained in:
@@ -71,6 +71,7 @@ extern char case_folded_upper[];
|
||||
#define _WINSVC_H
|
||||
#include <windows.h>
|
||||
#include <wincrypt.h>
|
||||
#include <lmcons.h>
|
||||
#undef _WINGDI_H
|
||||
#undef _WINUSER_H
|
||||
#undef _WINNLS_H
|
||||
@@ -97,11 +98,6 @@ extern int dynamically_loaded;
|
||||
MultiByteToWideChar((current_codepage==ansi_cp?CP_ACP:CP_OEMCP),0,(src),-1,(tgt),(len))
|
||||
|
||||
#define TITLESIZE 1024
|
||||
#define MAX_USER_NAME 20
|
||||
#define DEFAULT_UID 500
|
||||
#define DEFAULT_GID 544
|
||||
|
||||
#define MAX_HOST_NAME 256
|
||||
|
||||
/* status bit manipulation */
|
||||
#define __ISSETF(what, x, prefix) \
|
||||
|
Reference in New Issue
Block a user