mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
werror: replace WERR_SETUP_NOT_JOINED with WERR_NERR_SETUPNOTJOINED in source3/utils/
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
3bb394f3d6
commit
a9b20c647e
@ -1459,7 +1459,7 @@ int net_ads_join(struct net_context *c, int argc, const char **argv)
|
||||
TALLOC_CTX *ctx = NULL;
|
||||
struct libnet_JoinCtx *r = NULL;
|
||||
const char *domain = lp_realm();
|
||||
WERROR werr = WERR_SETUP_NOT_JOINED;
|
||||
WERROR werr = WERR_NERR_SETUPNOTJOINED;
|
||||
bool createupn = false;
|
||||
const char *machineupn = NULL;
|
||||
const char *machine_password = NULL;
|
||||
|
@ -299,7 +299,7 @@ static int net_dom_renamecomputer(struct net_context *c, int argc, const char **
|
||||
account, password, rename_options);
|
||||
if (status != 0) {
|
||||
printf(_("Failed to rename machine: "));
|
||||
if (status == W_ERROR_V(WERR_SETUP_NOT_JOINED)) {
|
||||
if (status == W_ERROR_V(WERR_NERR_SETUPNOTJOINED)) {
|
||||
printf(_("Computer is not joined to a Domain\n"));
|
||||
goto done;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user