From fd913b65b68a0e7a5b70054db7ba90af308e2ea2 Mon Sep 17 00:00:00 2001 From: "Andrew V. Samoilov" Date: Wed, 27 Oct 2004 12:44:48 +0000 Subject: [PATCH] * tar.c tar_read_header(): q should not point to a static string. Canonicalize q. --- vfs/ChangeLog | 5 +++++ vfs/tar.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/vfs/ChangeLog b/vfs/ChangeLog index a880f5235..955438f2f 100644 --- a/vfs/ChangeLog +++ b/vfs/ChangeLog @@ -1,3 +1,8 @@ +2004-10-27 Leonard den Ottolander + + * tar.c tar_read_header(): q should not point to a static string. + Canonicalize q. + 2004-10-25 Andrew V. Samoilov * smbfs.c (smbfs_open_readwrite): Comment out flags games, diff --git a/vfs/tar.c b/vfs/tar.c index 57d9c0215..06eb34beb 100644 --- a/vfs/tar.c +++ b/vfs/tar.c @@ -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);