mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-08 20:41:59 +03:00
* direntry.c (vfs_s_resolve_symlink): Eliminate
g_strdup_printf(). (vfs_s_fullpath): Likewise.
This commit is contained in:
parent
f51e86a184
commit
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>
|
||||
|
||||
* 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 */
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user