# HG changeset patch # User Matti Hamalainen # Date 1432678559 -10800 # Node ID ad13510c8e41a58dd727dd1b6d8a7a93098f830d # Parent c43c8e5118a0df92272f3aec5c75febbe1f28b6d Fix handling of -x option in packed. diff -r c43c8e5118a0 -r ad13510c8e41 tools/packed.c --- a/tools/packed.c Mon May 25 12:58:37 2015 +0300 +++ b/tools/packed.c Wed May 27 01:15:59 2015 +0300 @@ -75,7 +75,7 @@ BOOL argHandleOpt(const int optN, char *optArg, char *currArg) { - (void) optArg; + (void) currArg; switch (optN) { case 0: @@ -122,7 +122,7 @@ case 9: if (nexcFilenames < SET_MAX_FILES) { - excFilenames[nexcFilenames++] = currArg; + excFilenames[nexcFilenames++] = optArg; } else { @@ -770,11 +770,15 @@ match = FALSE; for (i = 0; (i < nsrcFilenames) && !match; i++) { - match = dm_strmatch(node->filename, srcFilenames[i]); + if (dm_strmatch(node->filename, srcFilenames[i]) && + !dmCheckExcluded(node->filename)) + match = TRUE; } } else - match = TRUE; + { + match = !dmCheckExcluded(node->filename); + } if (match && (node->privFlags & PACK_EXTRACTED) == 0) {