Logged In: NO

I have protected the fgets checking if the file was opened.

in_fh = popen(cmd,"r");
if(in_fh) {
while(fgets(cmd,MAXSIZE_TXTLINE,in_fh)) {
fprintf(fh, "%s", cmd);

I deally the fgets would go away. For now it's needed to run
dump and file on the executable.

Using libelf & libmagic would be a way of doing this, but
that adds to the space of the code in IPM.