From owner-svn-soc-all@FreeBSD.ORG Tue Jul 9 07:17:30 2013 Return-Path: Delivered-To: svn-soc-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 1B8A6771 for ; Tue, 9 Jul 2013 07:17:30 +0000 (UTC) (envelope-from dpl@FreeBSD.org) Received: from socsvn.freebsd.org (socsvn.freebsd.org [IPv6:2001:1900:2254:206a::50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 0DC981CA5 for ; Tue, 9 Jul 2013 07:17:30 +0000 (UTC) Received: from socsvn.freebsd.org ([127.0.1.124]) by socsvn.freebsd.org (8.14.7/8.14.7) with ESMTP id r697HTem030759 for ; Tue, 9 Jul 2013 07:17:29 GMT (envelope-from dpl@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.14.7/8.14.6/Submit) id r697HT5i030757 for svn-soc-all@FreeBSD.org; Tue, 9 Jul 2013 07:17:29 GMT (envelope-from dpl@FreeBSD.org) Date: Tue, 9 Jul 2013 07:17:29 GMT Message-Id: <201307090717.r697HT5i030757@socsvn.freebsd.org> X-Authentication-Warning: socsvn.freebsd.org: www set sender to dpl@FreeBSD.org using -f From: dpl@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r254453 - soc2013/dpl/head/contrib/xz/src/xz MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jul 2013 07:17:30 -0000 Author: dpl Date: Tue Jul 9 07:17:29 2013 New Revision: 254453 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=254453 Log: Enter capability mode after opening the files. Modified: soc2013/dpl/head/contrib/xz/src/xz/main.c Modified: soc2013/dpl/head/contrib/xz/src/xz/main.c ============================================================================== --- soc2013/dpl/head/contrib/xz/src/xz/main.c Tue Jul 9 07:15:59 2013 (r254452) +++ soc2013/dpl/head/contrib/xz/src/xz/main.c Tue Jul 9 07:17:29 2013 (r254453) @@ -210,6 +210,10 @@ void (*run)(const char *filename) = opt_mode == MODE_LIST ? &list_file : &coder_run; +#if defined(CAPSICUM) // + cap_init(); +#endif + // Process the files given on the command line. Note that if no names // were given, args_parse() gave us a fake "-" filename. for (size_t i = 0; i < args.arg_count && !user_abort; ++i) { @@ -244,7 +248,7 @@ } // Do the actual compression or decompression. - run(args.arg_names[i]); + (args.arg_names[i]); } // If --files or --files0 was used, process the filenames from the