As soon as you run rexec using the -p param, the program crashes. # ./rexec -p test -l test localhost ls ./rexec: can't allocate memory! If I look in the source rexec.c on line 318 there is the following statement *passwd = malloc((char *)malloc((passlen+1)*sizeof(char))); I dont know much about C, so I may have this completely wrong. but here it allocates memory malloc((passlen+1)*sizeof(char)) and then take the pointer to that memory and use that pointer as a size to allocate more memory :)? That line probably should be: *passwd = malloc((passlen+1)*sizeof(char))); If I recompile after this change all looks OK, and rexec works great. this problem seems to exist in fedora 13 and fedora 14
rsh-0.17-63.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/rsh-0.17-63.fc14
rsh-0.17-63.fc14 has been pushed to the Fedora 14 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update rsh'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/rsh-0.17-63.fc14
rsh-0.17-63.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.