md5check flexibility (windows filenames)
Brought to you by:
cepstein
md5sums generated on Windows systems with md5summer and
various other programs sometimes generate an md5 that
includes a windows path, ie -
"712dd3a7381bbcd8a3bf64284a7cb51a
*disc1\ph1999-09-14.flac" ... etc.
This will check out fine on a windows system, but on
linux the windows path borks md5check and we get a
"MISSING" error for every file with a path that can't
be read. I haven't used cygwin for awhile so I'm not
certain about that platform and the filesystem.
I've been seeing more filesets with pathnames in the
checksums so it would be great if md5check could handle
the "\" to "/" "switch" needed to work with platform
specific filenames/paths.
Logged In: NO
Also as an afterthought, I currently use a sed regex to
quickly make a md5sum out of windows-specific md5s, (Just to
simply convert "\" to "/").
sed 's~\\~/~g' $MD5SUM
This sed regex works fine with perl too.
perl -pe 's~\\~/~g' $MD5SUM
So I do currently have an easy way to get around pathname
problems with md5s, but having some built-in feature to
parse "windows-pathname" md5sums correctly would be nice. I
took a look at the md5check script to see if my meager perl
was up to the task and it's a bit over my head.