w32err: WERR_USER_EXISTS replace with WERR_USEREXISTS name
authorKamen Mazdrashki <kamen.mazdrashki@postpath.com>
Thu, 17 Sep 2009 21:00:21 +0000 (00:00 +0300)
committerAnatoliy Atanasov <anatoliy.atanasov@postpath.com>
Wed, 30 Sep 2009 12:48:40 +0000 (15:48 +0300)
In Win32 we have
NERR_UserExists which maps to WERR_USER_EXISTS currently
and there is
ERROR_USER_EXISTS which maps to WERR_USER_ALREADY_EXISTS

Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
libcli/util/doserr.c
libcli/util/werror.h

index 2d33935d8ff2a722eca5b6c4cc9d3018eddb39b9..1c1a39f7f948ef78fcb250f34239873e6142eae9 100644 (file)
@@ -76,7 +76,7 @@ static const struct werror_code_struct dos_errs[] =
        { "WERR_SETUP_DOMAIN_CONTROLLER", WERR_SETUP_DOMAIN_CONTROLLER },
        { "WERR_DEVICE_NOT_AVAILABLE", WERR_DEVICE_NOT_AVAILABLE },
        { "WERR_DEFAULT_JOIN_REQUIRED", WERR_DEFAULT_JOIN_REQUIRED },
-       { "WERR_USER_EXISTS", WERR_USER_EXISTS },
+       { "WERR_USEREXISTS", WERR_USEREXISTS },
        { "WERR_REVISION_MISMATCH", WERR_REVISION_MISMATCH },
        { "WERR_NO_LOGON_SERVERS", WERR_NO_LOGON_SERVERS },
        { "WERR_NO_SUCH_LOGON_SESSION", WERR_NO_SUCH_LOGON_SESSION },
@@ -265,7 +265,7 @@ const struct werror_str_struct dos_err_strs[] = {
        { WERR_SETUP_ALREADY_JOINED, "Machine is already joined" },
        { WERR_SETUP_DOMAIN_CONTROLLER, "Machine is a Domain Controller" },
        { WERR_LOGON_FAILURE, "Invalid logon credentials" },
-       { WERR_USER_EXISTS, "User account already exists" },
+       { WERR_USEREXISTS, "The user account already exists." },
        { WERR_PASSWORD_MUST_CHANGE, "The password must be changed" },
        { WERR_ACCOUNT_LOCKED_OUT, "Account locked out" },
        { WERR_TIME_SKEW, "Time difference between client and server" },
index c203938aeee464c57e683e522bd06f1af685ec60..fa358c1fda206e9fcb79b48322600172bb004f9a 100644 (file)
@@ -214,7 +214,7 @@ typedef uint32_t WERROR;
 #define WERR_DEST_NOT_FOUND            W_ERROR(0x00000868)
 #define WERR_GROUP_NOT_FOUND           W_ERROR(0x000008AC)
 #define WERR_USER_NOT_FOUND            W_ERROR(0x000008AD)
-#define WERR_USER_EXISTS               W_ERROR(0x000008B0)
+#define WERR_USEREXISTS                        W_ERROR(0x000008B0)
 #define WERR_NOT_CONNECTED             W_ERROR(0x000008CA)
 #define WERR_NAME_NOT_FOUND            W_ERROR(0x000008E1)
 #define WERR_NET_NAME_NOT_FOUND                W_ERROR(0x00000906)