pidgin/pidgin

Rip out "only" list support from our Windows untar code.
release-2.x.y
2014-03-01, Mark Doliner
a9504b165b27
Parents 38653c63a0d2
Children f38a5005e8a8
Rip out "only" list support from our Windows untar code.

We don't use it, and it's easier for me to rip it out than try to
figure out if my change broke the if statement here.
--- a/pidgin/win32/untar.c Sat Mar 01 17:04:55 2014 -0800
+++ b/pidgin/win32/untar.c Sat Mar 01 17:13:32 2014 -0800
@@ -122,8 +122,6 @@
static FILE *infp = NULL; /* input byte stream */
static FILE *outfp = NULL; /* output stream, for file currently being extracted */
static Ulong_t outsize = 0; /* number of bytes remainin in file currently being extracted */
-static char **only = NULL; /* array of filenames to extract/list */
-static int nonlys = 0; /* number of filenames in "only" array; 0=extract all */
static int didabs = 0; /* were any filenames affected by the absence of -p? */
static untar_opt untarops = 0; /* Untar options */
@@ -472,26 +470,6 @@
}
#endif
- /* If we have an "only" list, and this file isn't in it,
- * then skip it.
- */
- if (nonlys > 0)
- {
- for (i = 0;
- i < nonlys
- && strcmp(only[i], nbuf)
- && (strncmp(only[i], nbuf, strlen(only[i]))
- || nbuf[strlen(only[i])] != '/');
- i++)
- {
- }
- if (i >= nonlys)
- {
- outfp = NULL;
- return 1;
- }
- }
-
/* list the file */
if (VERBOSE)
untar_verbose("%c %s",