comparison 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
comparison
equal deleted inserted replaced
954:1cf9c28012a7 955:144d5ba7d410
33 33
34 for (i=0; flags[i]; i++) if (toys.optflags & (1<<i)) f |= flags[i]; 34 for (i=0; flags[i]; i++) if (toys.optflags & (1<<i)) f |= flags[i];
35 35
36 if(unshare(f)) perror_exit("failed"); 36 if(unshare(f)) perror_exit("failed");
37 37
38 xexec(toys.optargs); 38 xexec_optargs(0);
39 } 39 }