diff options
author | Jeremy Allison <jra@samba.org> | 1998-07-11 01:25:02 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-07-11 01:25:02 +0000 |
commit | ebad4278b72289f10ce7afa72a137f5e3e998b01 (patch) | |
tree | 091e2d39460dab7b85652d554237a3b248e27a82 /source3/include | |
parent | 5ffb30858f3b9181c90e50f6a3d791e017be3f7e (diff) | |
download | samba-ebad4278b72289f10ce7afa72a137f5e3e998b01.tar.gz samba-ebad4278b72289f10ce7afa72a137f5e3e998b01.tar.bz2 samba-ebad4278b72289f10ce7afa72a137f5e3e998b01.zip |
nntrans.c: Fully implemented transact rename.
reply.c: Added NT specific rename if exists flag to rename_internals().
smb.h: Added NT rename flag.
Jeremy.
(This used to be commit b398f7daf58459db6e8d3496502abeb634ac2183)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/proto.h | 2 | ||||
-rw-r--r-- | source3/include/smb.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 2c377bfb56..6d9d083bc1 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -1779,7 +1779,7 @@ int reply_printqueue(char *inbuf,char *outbuf, int dum_size, int dum_buffsize); int reply_printwrite(char *inbuf,char *outbuf, int dum_size, int dum_buffsize); int reply_mkdir(char *inbuf,char *outbuf, int dum_size, int dum_buffsize); int reply_rmdir(char *inbuf,char *outbuf, int dum_size, int dum_buffsize); -int rename_internals(char *inbuf, char *outbuf, char *name, char *newname); +int rename_internals(char *inbuf, char *outbuf, char *name, char *newname, BOOL replace_if_exists); int reply_mv(char *inbuf,char *outbuf, int dum_size, int dum_buffsize); int reply_copy(char *inbuf,char *outbuf, int dum_size, int dum_buffsize); int reply_setdir(char *inbuf,char *outbuf, int dum_size, int dum_buffsize); diff --git a/source3/include/smb.h b/source3/include/smb.h index 697caa349d..e58fcc034d 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -1118,6 +1118,9 @@ struct parm_struct #define OPEN_ALWAYS 4 #define TRUNCATE_EXISTING 5 +/* Flag for NT transact rename call. */ +#define RENAME_REPLACE_IF_EXISTS 1 + /* Filesystem Attributes. */ #define FILE_CASE_SENSITIVE_SEARCH 0x1 #define FILE_CASE_PRESERVED_NAMES 0x2 |