diff options
author | Jeremy Allison <jra@samba.org> | 2004-03-03 20:55:40 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2004-03-03 20:55:40 +0000 |
commit | 74307e350635a195ebaa4841651f555c27fbcff4 (patch) | |
tree | bcb6a413835d4a81aa8e08cde73b1125eca5b5a0 /source3/include/smb_macros.h | |
parent | 0dd6ea2f3a18290283a62888c9fa702aa343eed2 (diff) | |
download | samba-74307e350635a195ebaa4841651f555c27fbcff4.tar.gz samba-74307e350635a195ebaa4841651f555c27fbcff4.tar.bz2 samba-74307e350635a195ebaa4841651f555c27fbcff4.zip |
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)
Diffstat (limited to 'source3/include/smb_macros.h')
-rw-r--r-- | source3/include/smb_macros.h | 1 |
1 files changed, 1 insertions, 0 deletions
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('/')) |