From 1274ac7df5b7d48b31c0380b31bfa79cf2e3c992 Mon Sep 17 00:00:00 2001 From: vda Date: Fri, 24 Nov 2006 17:21:44 +0000 Subject: tar: fix and sanitize handling of long filenames/linknames (GNU extensions 'K' and 'L'). We correctly handle them when untarring now, but unfortunately we still don't use them when tarring! That stupid 100 char limit is still there! The biggest problem is that we don't support 'pax' tar format. Linux kernel tarballs are in this format... shame git-svn-id: svn://busybox.net/trunk/busybox@16659 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- libbb/xfuncs.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libbb') diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c index e6f4e3a48..1dbd7521b 100644 --- a/libbb/xfuncs.c +++ b/libbb/xfuncs.c @@ -74,6 +74,7 @@ char * xstrndup(const char *s, int n) if (ENABLE_DEBUG && s == NULL) bb_error_msg_and_die("xstrndup bug"); + /* TODO: think about xstrndup("abc", 10000)!!! */ t = xmalloc(++n); return safe_strncpy(t,s,n); -- cgit v1.2.3-55-g6feb