summaryrefslogtreecommitdiff
path: root/source3/libsmb/clientgen.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-12-01 13:24:22 -0800
committerJeremy Allison <jra@samba.org>2011-12-01 13:24:22 -0800
commitaf76d2588c9aab9ed0eb71ab216ea55faaa40cf2 (patch)
treea9fd4a77c5ff76bfb6e166ce75291813272c12b9 /source3/libsmb/clientgen.c
parent3c4af39aa506a25fc6d6753dbe34e4e1c0dd0b43 (diff)
downloadsamba-af76d2588c9aab9ed0eb71ab216ea55faaa40cf2.tar.gz
samba-af76d2588c9aab9ed0eb71ab216ea55faaa40cf2.tar.bz2
samba-af76d2588c9aab9ed0eb71ab216ea55faaa40cf2.zip
After a discussion with Volker, sdd a backup_intent state to the client struct.
This causes the backup_intent flags to be added to findfirst/findnext and ntcreate/nttrans_create calls. cli_set_backup_intent() sets the flag and returns the old value of its state.
Diffstat (limited to 'source3/libsmb/clientgen.c')
-rw-r--r--source3/libsmb/clientgen.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index fbce64f200..29a26d2f76 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -53,6 +53,17 @@ unsigned int cli_set_timeout(struct cli_state *cli, unsigned int timeout)
}
/****************************************************************************
+ Set the 'backup_intent' flag.
+****************************************************************************/
+
+bool cli_set_backup_intent(struct cli_state *cli, bool flag)
+{
+ bool old_state = cli->backup_intent;
+ cli->backup_intent = flag;
+ return old_state;
+}
+
+/****************************************************************************
convenience routine to find if we negotiated ucs2
****************************************************************************/