* vfsdummy.h [!USE_VFS]: Make sure that vfs_canon() doesn't
change the original string. Fix compilation without VFS.
Этот коммит содержится в:
родитель
a0d18b6ce8
Коммит
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>
|
2004-03-07 Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||||
|
|
||||||
* achown.c (init_chown_advanced) [ENABLE_NLS]: i18n fix.
|
* achown.c (init_chown_advanced) [ENABLE_NLS]: i18n fix.
|
||||||
|
@ -57,7 +57,6 @@ return_zero (void)
|
|||||||
|
|
||||||
#define vfs_current_is_local() 1
|
#define vfs_current_is_local() 1
|
||||||
#define vfs_file_is_local(x) 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_strip_suffix_from_filename(x) g_strdup(x)
|
||||||
|
|
||||||
#define vfs_file_class_flags(x) (VFSF_LOCAL)
|
#define vfs_file_class_flags(x) (VFSF_LOCAL)
|
||||||
@ -69,4 +68,12 @@ return_zero (void)
|
|||||||
#define vfs_timeout_handler() do { } while (0)
|
#define vfs_timeout_handler() do { } while (0)
|
||||||
#define vfs_timeouts() 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 */
|
#endif /* !__VFSDUMMY_H */
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user