mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-30 11:42:54 +03:00
* vfsdummy.h [!USE_VFS]: Make sure that vfs_canon() doesn't
change the original string. Fix compilation without VFS.
This commit is contained in:
parent
a0d18b6ce8
commit
3a0c1187b2
@ -1,3 +1,8 @@
|
||||
2004-04-18 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* vfsdummy.h [!USE_VFS]: Make sure that vfs_canon() doesn't
|
||||
change the original string. Fix compilation without VFS.
|
||||
|
||||
2004-03-07 Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||
|
||||
* achown.c (init_chown_advanced) [ENABLE_NLS]: i18n fix.
|
||||
|
@ -57,7 +57,6 @@ return_zero (void)
|
||||
|
||||
#define vfs_current_is_local() 1
|
||||
#define vfs_file_is_local(x) 1
|
||||
#define vfs_canon(p) g_strdup (canonicalize_pathname(p))
|
||||
#define vfs_strip_suffix_from_filename(x) g_strdup(x)
|
||||
|
||||
#define vfs_file_class_flags(x) (VFSF_LOCAL)
|
||||
@ -69,4 +68,12 @@ return_zero (void)
|
||||
#define vfs_timeout_handler() do { } while (0)
|
||||
#define vfs_timeouts() 0
|
||||
|
||||
static inline char *
|
||||
vfs_canon (const char *path)
|
||||
{
|
||||
char *p = g_strdup (path);
|
||||
canonicalize_pathname(p);
|
||||
return p;
|
||||
}
|
||||
|
||||
#endif /* !__VFSDUMMY_H */
|
||||
|
Loading…
x
Reference in New Issue
Block a user