* direntry.c (vfs_s_resolve_symlink): Eliminate
g_strdup_printf(). (vfs_s_fullpath): Likewise.
Этот коммит содержится в:
родитель
f51e86a184
Коммит
8ed2cc4594
@ -1,3 +1,9 @@
|
|||||||
|
2003-11-24 Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||||
|
|
||||||
|
* direntry.c (vfs_s_resolve_symlink): Eliminate
|
||||||
|
g_strdup_printf().
|
||||||
|
(vfs_s_fullpath): Likewise.
|
||||||
|
|
||||||
2003-11-21 Pavel Roskin <proski@gnu.org>
|
2003-11-21 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* ftpfs.c (ftpfs_login_server): Explicit password should have
|
* ftpfs.c (ftpfs_login_server): Explicit password should have
|
||||||
|
@ -217,7 +217,7 @@ vfs_s_resolve_symlink (struct vfs_class *me, struct vfs_s_entry *entry,
|
|||||||
/* make full path from relative */
|
/* make full path from relative */
|
||||||
if (*linkname != PATH_SEP) {
|
if (*linkname != PATH_SEP) {
|
||||||
char *fullpath = vfs_s_fullpath (me, entry->dir);
|
char *fullpath = vfs_s_fullpath (me, entry->dir);
|
||||||
fullname = g_strdup_printf ("%s/%s", fullpath, linkname);
|
fullname = g_strconcat (fullpath, "/", linkname, NULL);
|
||||||
linkname = fullname;
|
linkname = fullname;
|
||||||
g_free (fullpath);
|
g_free (fullpath);
|
||||||
}
|
}
|
||||||
@ -522,7 +522,7 @@ vfs_s_fullpath (struct vfs_class *me, struct vfs_s_inode *ino)
|
|||||||
ino = ino->ent->dir;
|
ino = ino->ent->dir;
|
||||||
if (ino == ino->super->root)
|
if (ino == ino->super->root)
|
||||||
break;
|
break;
|
||||||
newpath = g_strdup_printf ("%s/%s", ino->ent->name, path);
|
newpath = g_strconcat (ino->ent->name, "/", path, NULL);
|
||||||
g_free (path);
|
g_free (path);
|
||||||
path = newpath;
|
path = newpath;
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user