mirror of https://github.com/MidnightCommander/mc
2000-04-28 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
* direntry.c (vfs_s_internal_stat): added ugly special case for / of archive to always exist. It seems I'm hiding some underlying problem :-(.
This commit is contained in:
parent
d7bf5305b1
commit
d91a2b9a63
|
@ -1,3 +1,9 @@
|
|||
2000-04-28 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
|
||||
|
||||
* direntry.c (vfs_s_internal_stat): added ugly special case for /
|
||||
of archive to always exist. It seems I'm hiding some underlying
|
||||
problem :-(.
|
||||
|
||||
2000-04-26 Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||
|
||||
* direntry.c (vfs_s_find_entry_tree): segfault fixed when root is NULL
|
||||
|
|
|
@ -688,7 +688,7 @@ vfs_s_internal_stat (vfs *me, char *path, struct stat *buf, int flag)
|
|||
|
||||
path2 = g_strdup(path);
|
||||
if (!(ino = vfs_s_inode_from_path (me, path2, flag))) {
|
||||
if (!(ino = vfs_s_inode_from_path (me, path, flag|FL_DIR))) {
|
||||
if ((!path) || (*path) || !(ino = vfs_s_inode_from_path (me, path, flag|FL_DIR))) { /* Seems we have problem: vfs_s_inode_from_path on directories always succeeds. This is *hack* to make / directory of ftp archive statable */
|
||||
g_free(path2);
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue