[BusyBox] question about md5sum

Steven Scholz steven.scholz at imc-berlin.de
Wed Oct 23 07:03:03 UTC 2002


Hi there,

I have a question concerning md5sum:

Shouldn't "md5sum -c file" fail if "file" contains "improperly formatted MD5
checksum lines" !?!?

Instead it is just ignoring the file!

When I use -w then it warns me. Fair enough. But still the return code signals
success.

E.g.

if md5sum -c checksum -s; then echo "ok"; else echo "failed"; fi

prints "ok"...

So if I wanted to use a file call "checksum" to check integrity of my file then
an "improperly formatted MD5 checksum line" in "checksum" means that not all
files are actually checked. And so I don't know if these files are ok!

Am I rigth? Or am I missing something?

Thanks a million,

Steven



More information about the busybox mailing list