head 1.3; access; symbols pkgsrc-2013Q2:1.3.0.2 pkgsrc-2013Q2-base:1.3 pkgsrc-2013Q1:1.2.0.64 pkgsrc-2013Q1-base:1.2 pkgsrc-2012Q4:1.2.0.62 pkgsrc-2012Q4-base:1.2 pkgsrc-2012Q3:1.2.0.60 pkgsrc-2012Q3-base:1.2 pkgsrc-2012Q2:1.2.0.58 pkgsrc-2012Q2-base:1.2 pkgsrc-2012Q1:1.2.0.56 pkgsrc-2012Q1-base:1.2 pkgsrc-2011Q4:1.2.0.54 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q3:1.2.0.52 pkgsrc-2011Q3-base:1.2 pkgsrc-2011Q2:1.2.0.50 pkgsrc-2011Q2-base:1.2 pkgsrc-2011Q1:1.2.0.48 pkgsrc-2011Q1-base:1.2 pkgsrc-2010Q4:1.2.0.46 pkgsrc-2010Q4-base:1.2 pkgsrc-2010Q3:1.2.0.44 pkgsrc-2010Q3-base:1.2 pkgsrc-2010Q2:1.2.0.42 pkgsrc-2010Q2-base:1.2 pkgsrc-2010Q1:1.2.0.40 pkgsrc-2010Q1-base:1.2 pkgsrc-2009Q4:1.2.0.38 pkgsrc-2009Q4-base:1.2 pkgsrc-2009Q3:1.2.0.36 pkgsrc-2009Q3-base:1.2 pkgsrc-2009Q2:1.2.0.34 pkgsrc-2009Q2-base:1.2 pkgsrc-2009Q1:1.2.0.32 pkgsrc-2009Q1-base:1.2 pkgsrc-2008Q4:1.2.0.30 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.28 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.26 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.24 pkgsrc-2008Q2-base:1.2 cwrapper:1.2.0.22 pkgsrc-2008Q1:1.2.0.20 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.18 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.16 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.14 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.12 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.10 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.8 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.6 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.4 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.2.0.2 pkgsrc-2005Q4-base:1.2 pkgsrc-2005Q3:1.1.0.6 pkgsrc-2005Q3-base:1.1 pkgsrc-2005Q2:1.1.0.4 pkgsrc-2005Q2-base:1.1 pkgsrc-2005Q1:1.1.0.2 pkgsrc-2005Q1-base:1.1; locks; strict; comment @# @; 1.3 date 2013.06.09.14.35.12; author ryoon; state dead; branches; next 1.2; commitid udOnIwGPtyKJSWSw; 1.2 date 2005.11.03.19.38.50; author adrianp; state Exp; branches; next 1.1; 1.1 date 2005.03.20.19.53.09; author salo; state Exp; branches 1.1.6.1; next ; 1.1.6.1 date 2005.11.03.22.11.27; author salo; state Exp; branches; next ; desc @@ 1.3 log @Update to 2.11 * Update LICENSE to gnu-gpl-v3 Changelog: 2.11: Fix mt build. In copy-in mode, if directory attributes do not permit writing to it, setting them is delayed until the end of run. This allows to correctly extract files in such directories. In copy-in mode, permissions of a directory are restored if it appears in the file list after files in it (e.g. in listings produced by find . -depth). This fixes debian bug #458079. Fix possible memory overflow in the rmt client code (CVE-2010-0624). 2.10: Ensure record headers are properly packed (fix builds on ARM). Fix exit codes to reliably indicate success or failure of the operation. Fix large file support. Support MinGW builds. Minor bugfixes. 2.9: Licensed under the GPLv3. Bugfixes Honor umask when creating intermediate directories, not specified in the archive (debian bug #430053). 2.8: Option --owner can be used in copy-out mode, allowing to uniformly override the ownership of the files being added to the archive. Bugfixes: Symlinks were handled incorrectly in copy-out mode. Fix handling of large files. Fix setting the file permissions in copy-out mode. Fix CAN-2005-1111 2.7: Improved error checking and diagnostics Fixed CAN-1999-1572 Allow to use --sparse in both copy-in and copy-pass. Fix bug that eventually caused copying out the same hard-linked file several times to archive. Fix several LFS-related issues. Fix Debian bug #335580. @ text @$NetBSD: patch-ah,v 1.2 2005/11/03 19:38:50 adrianp Exp $ --- src/main.c.orig 2005-11-03 19:08:15.000000000 +0000 +++ src/main.c @@@@ -41,6 +41,7 @@@@ enum cpio_options { NO_ABSOLUTE_FILENAMES_OPTION=256, + ABSOLUTE_FILENAMES_OPTION, NO_PRESERVE_OWNER_OPTION, ONLY_VERIFY_CRC_OPTION, RENAME_BATCH_FILE_OPTION, @@@@ -134,6 +135,8 @@@@ static struct argp_option options[] = { N_("In copy-in mode, read additional patterns specifying filenames to extract or list from FILE"), 210}, {"no-absolute-filenames", NO_ABSOLUTE_FILENAMES_OPTION, 0, 0, N_("Create all files relative to the current directory"), 210}, + {"absolute-filenames", ABSOLUTE_FILENAMES_OPTION, 0, 0, + N_("do not strip leading file name components that contain \"..\" and leading slashes from file names"), 210}, {"only-verify-crc", ONLY_VERIFY_CRC_OPTION, 0, 0, N_("When reading a CRC format archive in copy-in mode, only verify the CRC's of each file in the archive, don't actually extract the files"), 210}, {"rename", 'r', 0, 0, @@@@ -392,7 +395,11 @@@@ crc newc odc bin ustar tar (all-caps als break; case NO_ABSOLUTE_FILENAMES_OPTION: /* --no-absolute-filenames */ - no_abs_paths_flag = true; + abs_paths_flag = false; + break; + + case ABSOLUTE_FILENAMES_OPTION: /* --absolute-filenames */ + abs_paths_flag = true; break; case NO_PRESERVE_OWNER_OPTION: /* --no-preserve-owner */ @@@@ -631,7 +638,7 @@@@ process_args (int argc, char *argv[]) _("--append is used but no archive file name is given (use -F or -O options"))); CHECK_USAGE(rename_batch_file, "--rename-batch-file", "--create"); - CHECK_USAGE(no_abs_paths_flag, "--no-absolute-pathnames", "--create"); + CHECK_USAGE(abs_paths_flag, "--absolute-pathnames", "--create"); CHECK_USAGE(input_archive_name, "-I", "--create"); if (archive_name && output_archive_name) USAGE_ERROR ((0, 0, _("Both -O and -F are used in copy-out mode"))); @@@@ -658,7 +665,7 @@@@ process_args (int argc, char *argv[]) CHECK_USAGE(rename_flag, "--rename", "--pass-through"); CHECK_USAGE(append_flag, "--append", "--pass-through"); CHECK_USAGE(rename_batch_file, "--rename-batch-file", "--pass-through"); - CHECK_USAGE(no_abs_paths_flag, "--no-absolute-pathnames", + CHECK_USAGE(abs_paths_flag, "--absolute-pathnames", "--pass-through"); CHECK_USAGE(to_stdout_option, "--to-stdout", "--pass-through"); @@@@ -740,7 +747,6 @@@@ main (int argc, char *argv[]) textdomain (PACKAGE); program_name = argv[0]; - umask (0); #ifdef __TURBOC__ _fmode = O_BINARY; /* Put stdin and stdout in binary mode. */ @@@@ -751,6 +757,7 @@@@ main (int argc, char *argv[]) #endif process_args (argc, argv); + umask (0); initialize_buffers (); @ 1.2 log @Fixes for CAN-2005-1111 and CAN-2005-1229 @ text @d1 1 a1 1 $NetBSD$ @ 1.1 log @Security fix for CAN-1999-1572. "cpio uses a 0 umask when creating files using the -O (archive) or -F options, which creates the files with mode 0666 and allows local users to read or overwrite those files." Patch inspired by Debian. Bump PKGREVISION. @ text @d3 53 a55 5 --- main.c.orig 2001-12-06 05:54:06.000000000 +0100 +++ main.c 2005-03-20 20:34:33.000000000 +0100 @@@@ -512,7 +512,6 @@@@ char *argv[]; { d61 1 a61 1 @@@@ -523,6 +522,7 @@@@ @ 1.1.6.1 log @Pullup ticket 887 - requested by Adrian Portelli security update for gcpio Revisions pulled up: - pkgsrc/archivers/gcpio/Makefile 1.26 - pkgsrc/archivers/gcpio/PLIST 1.6 - pkgsrc/archivers/gcpio/distinfo 1.9 - pkgsrc/archivers/gcpio/patches/patch-aa removed - pkgsrc/archivers/gcpio/patches/patch-ab removed - pkgsrc/archivers/gcpio/patches/patch-ac 1.4 - pkgsrc/archivers/gcpio/patches/patch-ad removed - pkgsrc/archivers/gcpio/patches/patch-ae 1.2 - pkgsrc/archivers/gcpio/patches/patch-af removed - pkgsrc/archivers/gcpio/patches/patch-ag 1.2 - pkgsrc/archivers/gcpio/patches/patch-ah 1.2 - pkgsrc/archivers/gcpio/patches/patch-ai 1.1 - pkgsrc/archivers/gcpio/patches/patch-aj 1.1 - pkgsrc/archivers/gcpio/patches/patch-ak 1.1 - pkgsrc/archivers/gcpio/patches/patch-al 1.1 - pkgsrc/archivers/gcpio/patches/patch-am 1.1 - pkgsrc/archivers/gcpio/patches/patch-an 1.1 - pkgsrc/archivers/gcpio/patches/patch-ao 1.1 Module Name: pkgsrc Committed By: adrianp Date: Thu Nov 3 19:38:51 UTC 2005 Modified Files: pkgsrc/archivers/gcpio: Makefile PLIST distinfo pkgsrc/archivers/gcpio/patches: patch-ac patch-ae patch-ag patch-ah Added Files: pkgsrc/archivers/gcpio/patches: patch-ai patch-aj patch-ak patch-al patch-am patch-an patch-ao Removed Files: pkgsrc/archivers/gcpio/patches: patch-aa patch-ab Log Message: Fixes for CAN-2005-1111 and CAN-2005-1229 --- Module Name: pkgsrc Committed By: adrianp Date: Thu Nov 3 19:40:12 UTC 2005 Removed Files: pkgsrc/archivers/gcpio/patches: patch-ad patch-af Log Message: Remove obsolete patches @ text @d1 1 a1 1 $NetBSD: patch-ah,v 1.2 2005/11/03 19:38:50 adrianp Exp $ d3 5 a7 53 --- src/main.c.orig 2005-11-03 19:08:15.000000000 +0000 +++ src/main.c @@@@ -41,6 +41,7 @@@@ enum cpio_options { NO_ABSOLUTE_FILENAMES_OPTION=256, + ABSOLUTE_FILENAMES_OPTION, NO_PRESERVE_OWNER_OPTION, ONLY_VERIFY_CRC_OPTION, RENAME_BATCH_FILE_OPTION, @@@@ -134,6 +135,8 @@@@ static struct argp_option options[] = { N_("In copy-in mode, read additional patterns specifying filenames to extract or list from FILE"), 210}, {"no-absolute-filenames", NO_ABSOLUTE_FILENAMES_OPTION, 0, 0, N_("Create all files relative to the current directory"), 210}, + {"absolute-filenames", ABSOLUTE_FILENAMES_OPTION, 0, 0, + N_("do not strip leading file name components that contain \"..\" and leading slashes from file names"), 210}, {"only-verify-crc", ONLY_VERIFY_CRC_OPTION, 0, 0, N_("When reading a CRC format archive in copy-in mode, only verify the CRC's of each file in the archive, don't actually extract the files"), 210}, {"rename", 'r', 0, 0, @@@@ -392,7 +395,11 @@@@ crc newc odc bin ustar tar (all-caps als break; case NO_ABSOLUTE_FILENAMES_OPTION: /* --no-absolute-filenames */ - no_abs_paths_flag = true; + abs_paths_flag = false; + break; + + case ABSOLUTE_FILENAMES_OPTION: /* --absolute-filenames */ + abs_paths_flag = true; break; case NO_PRESERVE_OWNER_OPTION: /* --no-preserve-owner */ @@@@ -631,7 +638,7 @@@@ process_args (int argc, char *argv[]) _("--append is used but no archive file name is given (use -F or -O options"))); CHECK_USAGE(rename_batch_file, "--rename-batch-file", "--create"); - CHECK_USAGE(no_abs_paths_flag, "--no-absolute-pathnames", "--create"); + CHECK_USAGE(abs_paths_flag, "--absolute-pathnames", "--create"); CHECK_USAGE(input_archive_name, "-I", "--create"); if (archive_name && output_archive_name) USAGE_ERROR ((0, 0, _("Both -O and -F are used in copy-out mode"))); @@@@ -658,7 +665,7 @@@@ process_args (int argc, char *argv[]) CHECK_USAGE(rename_flag, "--rename", "--pass-through"); CHECK_USAGE(append_flag, "--append", "--pass-through"); CHECK_USAGE(rename_batch_file, "--rename-batch-file", "--pass-through"); - CHECK_USAGE(no_abs_paths_flag, "--no-absolute-pathnames", + CHECK_USAGE(abs_paths_flag, "--absolute-pathnames", "--pass-through"); CHECK_USAGE(to_stdout_option, "--to-stdout", "--pass-through"); @@@@ -740,7 +747,6 @@@@ main (int argc, char *argv[]) textdomain (PACKAGE); d13 1 a13 1 @@@@ -751,6 +757,7 @@@@ main (int argc, char *argv[]) @