--- tar-1.26/src/list.c	2011-05-15 11:02:51.617614333 +0200
+++ tar-1.26-p1/src/list.c	2011-05-15 11:21:04.009614052 +0200
@@ -517,7 +517,10 @@
 		  memcpy (np, h->prefix, sizeof h->prefix);
 		  np[sizeof h->prefix] = '\0';
 		  np += strlen (np);
-		  *np++ = '/';
+		  /* only use prefix field as path when name field is not empty,
+		   * this prevent unwanted filetype changing by append a slash */
+		  if(h->name[0])
+		    *np++ = '/';
 		}
 	      memcpy (np, h->name, sizeof h->name);
 	      np[sizeof h->name] = '\0';
