* vfsdummy.h [!USE_VFS]: Make sure that vfs_canon() doesn't

change the original string.  Fix compilation without VFS.
This commit is contained in:
Pavel Roskin 2004-04-18 20:56:08 +00:00
parent a0d18b6ce8
commit 3a0c1187b2
2 changed files with 13 additions and 1 deletions

View File

@ -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.

View File

@ -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 */