implantisomd5 returning 6?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

I was using the anaconda runtime utility, implantisomd5, to
implant an md5 checksum in an ISO image, and it appears to work
fine, but when its done it returns 6 as its return code.  I 
also check the iso with checkisomd5, and find that it thinks all
is well and it returns the expected zero.  When I look at the
source code for implantisomd5 every exit I find is returning a 1.

I did notice that it was not explictly returning anything if all was
well.  So just to see what happened, I altered the code to return
0 explicitly when it exited and all was well.  At this point it stopped
returning 6, but returned one.  Any idea why it was returning a 6
when no exit specified this?  

Anyway here is the patch:

	*** implantisomd5.c.orig        Mon Jun  3 14:09:22 2002
	--- implantisomd5.c     Mon Jun  3 14:09:37 2002
	***************
	*** 179,182 ****
	--- 179,184 ----
	      close(isofd);
	  
	      printf("Done!\n");
	+ 
	+     exit(0);
	  }


No rocket science; it just works (that could be marketing logo (-;).

Cheers...james



_______________________________________________
Redhat-devel-list mailing list
Redhat-devel-list@redhat.com
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

[Index of Archives]     [Kernel Newbies]     [Red Hat General]     [Fedora]     [Red Hat Install]     [Linux Kernel Development]     [Yosemite News]

  Powered by Linux