From d6772501db451b5d7fd4001f5e9c4f1ad20c63d6 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko 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 --- 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