One of the two callers even had a comment what it does...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
****************************************************************************/
#define IS_DIRECTORY_SEP(c) ((c) == '\\' || (c) == '/')
-#define unix_format(fname) string_replace(fname,'\\','/')
/****************************************************************************
Make a file into DOS format.
if (!ptr) {
return NULL;
}
- /* Convert any '\' paths to '/' */
- unix_format(ptr);
+ string_replace(ptr, '\\', '/');
ptr = unix_clean_name(ctx, ptr);
if (!ptr) {
return NULL;
if (!name) {
return NT_STATUS_NO_MEMORY;
}
- unix_format(name);
+ string_replace(name, '\\', '/');
name = unix_clean_name(ctx, name);
if (!name) {
return NT_STATUS_NO_MEMORY;