updates.
authorPekka Riikonen <priikone@silcnet.org>
Fri, 8 Feb 2002 13:20:49 +0000 (13:20 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Fri, 8 Feb 2002 13:20:49 +0000 (13:20 +0000)
lib/silcsftp/sftp_fs_memory.c

index 17f3293e668955b9e909ef4a1f8ea3c475004e59..b2c3d84d740a8a8a2bc2a34a36006b51c8a83a0e 100644 (file)
@@ -800,7 +800,7 @@ void mem_stat(void *context, SilcSFTP sftp,
   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);
@@ -850,7 +850,7 @@ void mem_lstat(void *context, SilcSFTP sftp,
   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);
@@ -984,7 +984,7 @@ void mem_realpath(void *context, SilcSFTP sftp,
   SilcSFTPName name;
 
   if (!path || !strlen(path))
-    path = (const char *)DIR_SEPARATOR;
+    path = (const char *)strdup("/");
 
   realpath = mem_expand_path(fs->root, path);
   if (!realpath) {