git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8471efe
)
Use libnetapi_get_error_string() in "net dom" commands.
author
Günther Deschner
<gd@samba.org>
Thu, 28 Feb 2008 15:56:35 +0000
(16:56 +0100)
committer
Günther Deschner
<gd@samba.org>
Thu, 28 Feb 2008 16:05:38 +0000
(17:05 +0100)
Guenther
(This used to be commit
58048f0c575d6ac5b770873e308d4a1a9ce68123
)
source3/utils/net_dom.c
patch
|
blob
|
history
diff --git
a/source3/utils/net_dom.c
b/source3/utils/net_dom.c
index 30993ae2fa7742df290b762633c9cd129d702c1b..e88bbdb276e2f247c65ffaf7221a899310578817 100644
(file)
--- 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;
}