> >                     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

Reply via email to