* direntry.c (vfs_s_resolve_symlink): Eliminate

g_strdup_printf().
(vfs_s_fullpath): Likewise.
This commit is contained in:
Pavel Roskin 2003-11-24 20:30:30 +00:00
parent f51e86a184
commit 8ed2cc4594
2 changed files with 8 additions and 2 deletions

View File

@ -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>
* ftpfs.c (ftpfs_login_server): Explicit password should have

View File

@ -217,7 +217,7 @@ vfs_s_resolve_symlink (struct vfs_class *me, struct vfs_s_entry *entry,
/* make full path from relative */
if (*linkname != PATH_SEP) {
char *fullpath = vfs_s_fullpath (me, entry->dir);
fullname = g_strdup_printf ("%s/%s", fullpath, linkname);
fullname = g_strconcat (fullpath, "/", linkname, NULL);
linkname = fullname;
g_free (fullpath);
}
@ -522,7 +522,7 @@ vfs_s_fullpath (struct vfs_class *me, struct vfs_s_inode *ino)
ino = ino->ent->dir;
if (ino == ino->super->root)
break;
newpath = g_strdup_printf ("%s/%s", ino->ent->name, path);
newpath = g_strconcat (ino->ent->name, "/", path, NULL);
g_free (path);
path = newpath;
}