From: Pekka Riikonen Date: Fri, 8 Feb 2002 13:20:49 +0000 (+0000) Subject: updates. X-Git-Tag: silc.client.0.8.1~100 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=027431e03becab792dc3654adfe61a5f0a263a68 updates. --- 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) {