summaryrefslogtreecommitdiff
path: root/source3/lib/netapi/examples
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-06-05 19:04:31 +0200
committerGünther Deschner <gd@samba.org>2008-06-05 19:39:24 +0200
commit66a5cbaf8be9de66d40660cfb57df553b651d75d (patch)
tree677e24c9cdc111c9184dfd22b3e69073d3faaab0 /source3/lib/netapi/examples
parentde89de4b58249aa6b73eae7399fe78e6b86e81f1 (diff)
downloadsamba-66a5cbaf8be9de66d40660cfb57df553b651d75d.tar.gz
samba-66a5cbaf8be9de66d40660cfb57df553b651d75d.tar.bz2
samba-66a5cbaf8be9de66d40660cfb57df553b651d75d.zip
netdomjoin-gui: enable NetGetJoinInformation() call after successfull joining.
Now that libnetjoin reloads configuration after joining, we can rely on the NetGetJoinInformation() output and use it for displaying the new domain name and type. Guenther (This used to be commit cc1b8de2632e87002cac86838f2a77ab9771ce2c)
Diffstat (limited to 'source3/lib/netapi/examples')
-rw-r--r--source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c b/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c
index 1da8169f63..418b9c8b8e 100644
--- a/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c
+++ b/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c
@@ -297,12 +297,12 @@ static void callback_do_reboot(GtkWidget *widget,
}
debug("got new status: %s\n", buffer);
-#if 0
+
SAFE_FREE(state->name_buffer_new);
state->name_buffer_new = strdup(buffer);
- SAFE_FREE(buffer);
state->name_type_new = type;
-#endif
+ state->name_buffer_initial = strdup(buffer);
+ state->name_type_initial = type;
NetApiBufferFree((void *)buffer);
gtk_label_set_text(GTK_LABEL(state->label_current_name_buffer),