socsvn commit: r254453 - soc2013/dpl/head/contrib/xz/src/xz

dpl at FreeBSD.org dpl at FreeBSD.org
Tue Jul 9 07:17:30 UTC 2013


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


More information about the svn-soc-all mailing list