From 74307e350635a195ebaa4841651f555c27fbcff4 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 3 Mar 2004 20:55:40 +0000 Subject: Use a common function to parse all pathnames from the wire. This allows much closer emulation of Win2k3 error return codes. Jeremy. (This used to be commit 883f89a0184e37bff4f5877a25d31b994996ab08) --- source3/include/smb.h | 6 ++++++ source3/include/smb_macros.h | 1 + 2 files changed, 7 insertions(+) (limited to 'source3/include') diff --git a/source3/include/smb.h b/source3/include/smb.h index ab6f4c70d6..298944a0b1 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -1155,6 +1155,12 @@ struct bitmap { /* Flag for NT transact rename call. */ #define RENAME_REPLACE_IF_EXISTS 1 +/* flags for SMBntrename call (from Samba4) */ +#define RENAME_FLAG_MOVE_CLUSTER_INFORMATION 0x102 /* ???? */ +#define RENAME_FLAG_HARD_LINK 0x103 +#define RENAME_FLAG_RENAME 0x104 +#define RENAME_FLAG_COPY 0x105 + /* Filesystem Attributes. */ #define FILE_CASE_SENSITIVE_SEARCH 0x00000001 #define FILE_CASE_PRESERVED_NAMES 0x00000002 diff --git a/source3/include/smb_macros.h b/source3/include/smb_macros.h index 178fd9c358..c3bdba30b1 100644 --- a/source3/include/smb_macros.h +++ b/source3/include/smb_macros.h @@ -245,6 +245,7 @@ copy an IP address from one buffer to another Make a filename into unix format. ****************************************************************************/ +#define IS_DIRECTORY_SEP(c) ((c) == '\\' || (c) == '/') #define unix_format(fname) string_replace(fname,'\\','/') #define unix_format_w(fname) string_replace_w(fname, UCS2_CHAR('\\'), UCS2_CHAR('/')) -- cgit