* tar.c tar_read_header(): q should not point to a static string.

Canonicalize q.
This commit is contained in:
Andrew V. Samoilov 2004-10-27 12:44:48 +00:00
parent ea5c3dead6
commit fd913b65b6
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-10-27 Leonard den Ottolander <leonard * den ottolander nl>
* tar.c tar_read_header(): q should not point to a static string.
Canonicalize q.
2004-10-25 Andrew V. Samoilov <sav@bcs.zp.ua>
* smbfs.c (smbfs_open_readwrite): Comment out flags games,

View File

@ -483,8 +483,9 @@ tar_read_header (struct vfs_class *me, struct vfs_s_super *archive,
while (q[0] == '.' && q[1] == '/')
q += 2;
if (*q == '.' && *(q+1) == '\0')
q = "";
q++;
}
canonicalize_pathname(q);
parent =
vfs_s_find_inode (me, archive, q, LINK_NO_FOLLOW, FL_MKDIR);