OSDN Git Service

* mkgroup.c: Use statically linked functions throughout, except for
authorcorinna <corinna>
Wed, 9 Jul 2008 14:32:29 +0000 (14:32 +0000)
committercorinna <corinna>
Wed, 9 Jul 2008 14:32:29 +0000 (14:32 +0000)
commit79d6a8ed66fd13004c850712cf93ab5a8d04061d
treef6433c9a3f6652a96967d078a18b839fcebd7993
parent62eca1b3a3c1474691fc1c67e6f7c89f5ccd1906
* mkgroup.c: Use statically linked functions throughout, except for
DsGetDcNameW.  Reformat.  Convert to use WCHAR for names throughout.
Use defines instead of constants throughout.
(MAX_SID_LEN): Define.
(load_netapi): Just load DsGetDcNameW pointer.
(psx_dir): Remove.
(uni2ansi): Remove.
(enum_local_users): Take server name and use in Net... call.
(DBGSID): Define datastructure.
(MAX_BUILTIN_SIDS): Define.
(builtin_sid_list): Define global sid list.
(builtin_sid_cnt): Define counter for global sid list.
(enum_local_groups): Take server name and use in Net... and Lookup...
calls.  Take offset argument.  Use MAX_PREFERRED_LENGTH in call to
NetLocalGroupEnum.  Check for duplicate builtin groups.
(enum_users): Take server name and use in Net... call.
(usage): Change text slightly.
(print_version): Fix copyright.
(main): Call enum_local_groups for domains as well.
* mkpasswd.c: Use statically linked functions throughout, except for
DsGetDcNameW.  Reformat.  Convert to use WCHAR for names throughout.
Use defines instead of constants throughout.
(MAX_SID_LEN): Define.
(load_netapi): Just load DsGetDcNameW pointer.
(uni2ansi): Use wcstombs.
(current_user): Replace "unused_by_nt/2000/xp" by
just "unused".
(enum_users): Ditto.
(print_version): Fix copyright.
winsup/utils/ChangeLog
winsup/utils/mkgroup.c
winsup/utils/mkpasswd.c