summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-02-28 16:56:35 +0100
committerGünther Deschner <gd@samba.org>2008-02-28 17:05:38 +0100
commit4a8e6c9a91b772a924b8f0519d373457bb2a95ae (patch)
tree0a1f04fd760d4e327ef25a9b3c15e57fd363cf25 /source3/utils
parent8471efe308a34f4bd670211104157100f9f2acca (diff)
downloadsamba-4a8e6c9a91b772a924b8f0519d373457bb2a95ae.tar.gz
samba-4a8e6c9a91b772a924b8f0519d373457bb2a95ae.tar.bz2
samba-4a8e6c9a91b772a924b8f0519d373457bb2a95ae.zip
Use libnetapi_get_error_string() in "net dom" commands.
Guenther (This used to be commit 58048f0c575d6ac5b770873e308d4a1a9ce68123)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_dom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/net_dom.c b/source3/utils/net_dom.c
index 30993ae2fa..e88bbdb276 100644
--- a/source3/utils/net_dom.c
+++ b/source3/utils/net_dom.c
@@ -101,7 +101,7 @@ static int net_dom_unjoin(int argc, const char **argv)
status = NetUnjoinDomain(server_name, account, password, unjoin_flags);
if (status != 0) {
printf("Failed to unjoin domain: %s\n",
- libnetapi_errstr(status));
+ libnetapi_get_error_string(ctx, status));
goto done;
}
@@ -215,7 +215,7 @@ static int net_dom_join(int argc, const char **argv)
Account, password, join_flags);
if (status != 0) {
printf("Failed to join domain: %s\n",
- libnetapi_errstr(status));
+ libnetapi_get_error_string(ctx, status));
goto done;
}