md5(1) exit code

Colin Percival colin.percival at wadham.ox.ac.uk
Sun Oct 12 08:50:35 PDT 2003


   Or rather, lack thereof.  I was rather astonished to find that `md5 
/nonexistant` printed an error message but still returned an exit code of 
zero; this is, of course, due to the use of warn() instead of err() in 
response to a receiving a NULL pointer returned from MD5File(3).
   Is there any reason for this behaviour?

Colin Percival



More information about the freebsd-hackers mailing list