summaryrefslogtreecommitdiff
path: root/source3/utils/net.h
diff options
context:
space:
mode:
authorLars Müller <lmuelle@samba.org>2005-06-12 21:18:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:57:10 -0500
commitebb42167c9912492428e7ed8e03f06505a5c86fe (patch)
treea52cae0fccbf0024f990581c7e30f8ff2e86df1b /source3/utils/net.h
parentbf66eb3a92a0b111f005826696430d934d1187e5 (diff)
downloadsamba-ebb42167c9912492428e7ed8e03f06505a5c86fe.tar.gz
samba-ebb42167c9912492428e7ed8e03f06505a5c86fe.tar.bz2
samba-ebb42167c9912492428e7ed8e03f06505a5c86fe.zip
r7512: Fix net share migrate files to also migrate the ACLs of the top level
dir of a share. Till now we excluded '.' and '..' in general. For the fix the information about top or lower level dir is stored in the copy_clistate. src and dst share are now also part of this struct and we only pass a pointer to the struct to the functions. This bug was found by Bill Calero of Novell. Thanks Bill! With this checkin no new functionality was added. But the copy_clistate already knows about a mode. Later beside the migrate an additional report mode will be added. This changes are coordinated with Günther <gd>. Lars (This used to be commit 506aaefa3716c7683eef9afe0d1bb5b6e2533c4b)
Diffstat (limited to 'source3/utils/net.h')
-rw-r--r--source3/utils/net.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/source3/utils/net.h b/source3/utils/net.h
index 2d9fbd1644..ebabf605dd 100644
--- a/source3/utils/net.h
+++ b/source3/utils/net.h
@@ -26,6 +26,16 @@
typedef NTSTATUS (*rpc_command_fn)(const DOM_SID *, const char *,
struct cli_state *, TALLOC_CTX *, int, const char **);
+typedef struct copy_clistate {
+ TALLOC_CTX *mem_ctx;
+ struct cli_state *cli_share_src;
+ struct cli_state *cli_share_dst;
+ char *cwd;
+ BOOL top_level_dir;
+ uint16 attribute;
+ int mode;
+}copy_clistate;
+
/* INCLUDE FILES */
#include "utils/net_proto.h"
@@ -51,6 +61,9 @@ typedef NTSTATUS (*rpc_command_fn)(const DOM_SID *, const char *,
/* don't open an RPC pipe */
#define NET_FLAGS_NO_PIPE 32
+/* net share operation modes */
+#define NET_MODE_SHARE_MIGRATE 1
+
extern int opt_maxusers;
extern const char *opt_comment;
extern const char *opt_container;