summaryrefslogtreecommitdiff
path: root/source3/rpc_parse
diff options
context:
space:
mode:
authorMatthew Chapman <matty@samba.org>1999-05-01 05:56:55 +0000
committerMatthew Chapman <matty@samba.org>1999-05-01 05:56:55 +0000
commite3a888d5a935047367e531321981cbed8618c5a3 (patch)
treecfbf41483bffd10b3cac43bb1dc76a955a80bb43 /source3/rpc_parse
parent89d51caba5bed5c3329b3776e15fce2bb41f7592 (diff)
downloadsamba-e3a888d5a935047367e531321981cbed8618c5a3.tar.gz
samba-e3a888d5a935047367e531321981cbed8618c5a3.tar.bz2
samba-e3a888d5a935047367e531321981cbed8618c5a3.zip
Adding "time" rpcclient command which displays the remote time.
Also added special "now" time to the "at" command, e.g.: at now /i cmd ; pops up a command prompt (This used to be commit f456dcf08ec96c631f5e6f2e857115d4bbf94d1b)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r--source3/rpc_parse/parse_srv.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/rpc_parse/parse_srv.c b/source3/rpc_parse/parse_srv.c
index 56b8be2acb..1bcc961853 100644
--- a/source3/rpc_parse/parse_srv.c
+++ b/source3/rpc_parse/parse_srv.c
@@ -1459,6 +1459,17 @@ void srv_io_r_net_srv_get_info(char *desc, SRV_R_NET_SRV_GET_INFO *r_n, prs_str
prs_uint32("status ", ps, depth, &(r_n->status ));
}
+/*******************************************************************
+ makes a SRV_Q_NET_REMOTE_TOD structure.
+ ********************************************************************/
+void make_srv_q_net_remote_tod(SRV_Q_NET_REMOTE_TOD *q_t, char *server_name)
+{
+ if (q_t == NULL) return;
+
+ DEBUG(5,("make_srv_q_net_remote_tod\n"));
+
+ make_buf_unistr2(&(q_t->uni_srv_name), &(q_t->ptr_srv_name), server_name);
+}
/*******************************************************************
reads or writes a structure.