From 027431e03becab792dc3654adfe61a5f0a263a68 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Fri, 8 Feb 2002 13:20:49 +0000 Subject: [PATCH] updates. --- lib/silcsftp/sftp_fs_memory.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/silcsftp/sftp_fs_memory.c b/lib/silcsftp/sftp_fs_memory.c index 17f3293e..b2c3d84d 100644 --- a/lib/silcsftp/sftp_fs_memory.c +++ b/lib/silcsftp/sftp_fs_memory.c @@ -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) { -- 2.24.0