[Bug 213007] [patch] sbin/md5/md5.{c,1} make '-c' flag also work with stdin, add '-P' flag to print digest to stderr
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Sep 26 15:53:52 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213007
Bug ID: 213007
Summary: [patch] sbin/md5/md5.{c,1} make '-c' flag also work
with stdin, add '-P' flag to print digest to stderr
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Keywords: patch
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: freebsd-bugs at FreeBSD.org
Reporter: marcis.lielturks at gmail.com
Keywords: patch
Created attachment 175182
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=175182&action=edit
sbin/md5/md5.c patch to apply '-c' to stdin input and add '-P' which outputs
digest to stderr
I thought that extending '-c' to also verify digest, if it was passed from
STDIN, would be useful and allow using md5 in pipeline. For similar reasons I
added option '-P', which resembles '-p', only digest is output to STDERR.
I recently had been writing 11.0-RCx images to USB flash several times, I
started to use pipeline, which fetches and writes image to USB flash directly,
without intermediately storing it on computer. This, however, means that
checksum verification was not straight forward.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list