aboutsummaryrefslogtreecommitdiff
path: root/libbb/xfuncs.c
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-24 17:21:44 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-24 17:21:44 +0000
commit1274ac7df5b7d48b31c0380b31bfa79cf2e3c992 (patch)
tree30b4606de7dbbe62462ad7dc106e429a32e22272 /libbb/xfuncs.c
parent98090c7c5f5040053f413ea7d0f4ea178144423d (diff)
downloadbusybox-w32-1274ac7df5b7d48b31c0380b31bfa79cf2e3c992.tar.gz
busybox-w32-1274ac7df5b7d48b31c0380b31bfa79cf2e3c992.tar.bz2
busybox-w32-1274ac7df5b7d48b31c0380b31bfa79cf2e3c992.zip
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
Diffstat (limited to 'libbb/xfuncs.c')
-rw-r--r--libbb/xfuncs.c1
1 files changed, 1 insertions, 0 deletions
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)
74 if (ENABLE_DEBUG && s == NULL) 74 if (ENABLE_DEBUG && s == NULL)
75 bb_error_msg_and_die("xstrndup bug"); 75 bb_error_msg_and_die("xstrndup bug");
76 76
77 /* TODO: think about xstrndup("abc", 10000)!!! */
77 t = xmalloc(++n); 78 t = xmalloc(++n);
78 79
79 return safe_strncpy(t,s,n); 80 return safe_strncpy(t,s,n);