Date: Fri, 15 Jan 2016 23:04:36 +0000 (UTC) From: Alex Kozlov <ak@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r294108 - head/usr.bin/unzip Message-ID: <201601152304.u0FN4adm010987@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ak (ports committer) Date: Fri Jan 15 23:04:36 2016 New Revision: 294108 URL: https://svnweb.freebsd.org/changeset/base/294108 Log: - Match directory extraction message with Infozip [1] - Add comment explaining masks in check_binary() Obtained from: NetBSD [1] Approved by: des Modified: head/usr.bin/unzip/unzip.c Modified: head/usr.bin/unzip/unzip.c ============================================================================== --- head/usr.bin/unzip/unzip.c Fri Jan 15 22:58:23 2016 (r294107) +++ head/usr.bin/unzip/unzip.c Fri Jan 15 23:04:36 2016 (r294108) @@ -403,7 +403,7 @@ extract_dir(struct archive *a, struct ar if (mode & 0004) mode |= 0001; - info("d %s\n", path); + info(" creating: %s/\n", path); make_dir(path, mode); ac(archive_read_data_skip(a)); } @@ -466,7 +466,9 @@ handle_existing_file(char **path) * one white-listed byte has to be found. * * Black-listed: 0..6, 14..25, 28..31 + * 0xf3ffc07f = 11110011111111111100000001111111b * White-listed: 9..10, 13, >= 32 + * 0x00002600 = 00000000000000000010011000000000b * * See the proginfo/txtvsbin.txt in the zip sources for a detailed discussion. */ @@ -930,7 +932,8 @@ static void usage(void) { - fprintf(stderr, "Usage: unzip [-aCcfjLlnopqtuvyZ1] [-d dir] [-x pattern] zipfile\n"); + fprintf(stderr, "Usage: unzip [-aCcfjLlnopqtuvyZ1] [-d dir] [-x pattern] " + "zipfile\n"); exit(1); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601152304.u0FN4adm010987>