diff toys/other/unshare.c @ 955:144d5ba7d410

Replace users of xexec(toys.optargs) with xexec_optargs(0) to avoid free/reuse bug during argument parsing.
author Rob Landley <rob@landley.net>
date Thu, 18 Jul 2013 18:20:03 -0500
parents 786841fdb1e0
children 0d0c01ac5c63
line wrap: on
line diff
--- a/toys/other/unshare.c	Wed Jul 17 17:27:14 2013 -0500
+++ b/toys/other/unshare.c	Thu Jul 18 18:20:03 2013 -0500
@@ -35,5 +35,5 @@
 
   if(unshare(f)) perror_exit("failed");
 
-  xexec(toys.optargs);
+  xexec_optargs(0);
 }