projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
165aa94
)
updates.
author
Pekka Riikonen
<priikone@silcnet.org>
Fri, 8 Feb 2002 13:20:49 +0000
(13:20 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Fri, 8 Feb 2002 13:20:49 +0000
(13:20 +0000)
lib/silcsftp/sftp_fs_memory.c
patch
|
blob
|
history
diff --git
a/lib/silcsftp/sftp_fs_memory.c
b/lib/silcsftp/sftp_fs_memory.c
index 17f3293e668955b9e909ef4a1f8ea3c475004e59..b2c3d84d740a8a8a2bc2a34a36006b51c8a83a0e 100644
(file)
--- 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))
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);
/* 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))
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);
/* 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))
SilcSFTPName name;
if (!path || !strlen(path))
- path = (const char *)
DIR_SEPARATOR
;
+ path = (const char *)
strdup("/")
;
realpath = mem_expand_path(fs->root, path);
if (!realpath) {
realpath = mem_expand_path(fs->root, path);
if (!realpath) {