struct stat stats;
if (!path || !strlen(path))
- path = (const char *)DIR_SEPARATOR;
+ path = (const char *)strdup("/");
/* Find such directory */
entry = mem_find_entry_path(fs->root, path);
struct stat stats;
if (!path || !strlen(path))
- path = (const char *)DIR_SEPARATOR;
+ path = (const char *)strdup("/");
/* Find such directory */
entry = mem_find_entry_path(fs->root, path);
SilcSFTPName name;
if (!path || !strlen(path))
- path = (const char *)DIR_SEPARATOR;
+ path = (const char *)strdup("/");
realpath = mem_expand_path(fs->root, path);
if (!realpath) {