diff toys/posix/nohup.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 0752b2d58909
line wrap: on
line diff
--- a/toys/posix/nohup.c	Wed Jul 17 17:27:14 2013 -0500
+++ b/toys/posix/nohup.c	Thu Jul 18 18:20:03 2013 -0500
@@ -36,5 +36,5 @@
     close(0);
     open("/dev/null", O_RDONLY);
   }
-  xexec(toys.optargs);
+  xexec_optargs(0);
 }