[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[coreutils] [PATCH] md5sum: Add option to ignore non-existant files
From: |
Luther |
Subject: |
[coreutils] [PATCH] md5sum: Add option to ignore non-existant files |
Date: |
Wed, 08 Dec 2010 22:14:50 -0500 |
Normally, when I use md5sum, it's when I download a file and an MD5SUMS
file that comes with it. This MD5SUMS file usually lists many files
including the one I downloaded. When I run 'md5sum -c MD5SUMS', I get
many error messages about files that I don't have. Obviously, I don't
care about the files I didn't download, and the error messages make it
difficult to see the output relating to the file that I do care about.
I suggest a new option, -i/--ignore-missing, which ignores any filenames
that do not exist on the filesystem.
In my patch, the option simply suppresses both relevant error messages.
Another approach might be to have digest_check check to see if the file
exists. If it doesn't, don't call digest_file or print the 'FAILED'
message.
Sorry if my patch is a little messy, being in 3 parts. I'm not used to
using git.
HTH, and let me know what you think...
Luther
--
Please do not send me Microsoft Office/Apple iWork documents. Send
OpenDocument instead! http://fsf.org/campaigns/opendocument/
0001-md5sum-Added-option-ignore-missing.patch
Description: Text Data
0002-src-md5sum-Change-tabs-to-spaces.patch
Description: Text Data
0003-doc-coreutils.texi-Document-md5sum-i.patch
Description: Text Data
- [coreutils] [PATCH] md5sum: Add option to ignore non-existant files,
Luther <=