Olivier Cherrier [2006-04-26, 23:47:14]:
> Hello,
>
> Here is a port of shmux:
>
> from pkg/DESCR:
> ---------------
> shmux is program for executing the same command on many hosts in
> parallel. For each target, a child process is spawned by shmux, and a
> shell on the target obtained one of the supported methods: rsh, ssh, or
> sh. The output produced by the children is received by shmux and either
> (optionally) output in turn to the user using an easy to read format, or
> written to files for later processing making it well suited for use in
> scripts.
>
> It's available from:
> http://www.symacx.com/data/software/OpenBSD/shmux.taz
from your patch-src_loop_c:
str = (char *) malloc(strlen(*left)
+ strlen(start) + 1);
- sprintf(str, "%s%s", *left, start);
+ snprintf(str, sizeof(str), "%s%s",
+ *left, start);
this is wrong: sizeof(str) will return sizeof(char *).
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm