From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Wed, 19 May 2010 13:51:12 -0400 To: 9fans@9fans.net Message-ID: In-Reply-To: <20100519171832.72D915B8A@mail.bitblocks.com> References: <20100519054035.C71DB5B63@mail.bitblocks.com> <20100519171832.72D915B8A@mail.bitblocks.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] system call trace version of 9vx available. Topicbox-Message-UUID: 27b1017e-ead6-11e9-9d60-3106f5b1d025 > > if (cmd[0] != '/') { > > char* pcmd = malloc(strlen(cmd) + 5); > > sprintf(pcmd, "/bin/%s", cmd); > > exec(pcmd, args); > > } shouldn't that be if (cmd[0] != '/') exec(smprint("/bin/%s", cmd), args); with no silly stdio? - erik