Use a common function to parse all pathnames from the wire. This allows
[metze/samba/wip.git] / source3 / include / smb_macros.h
index 178fd9c3580923851da2e53a157f56cdbd293394..c3bdba30b15bf339f19131915c263fd44325547c 100644 (file)
@@ -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('/'))