dd: print a better diagnostic for an invalid block size
authorJim Meyering <meyering@redhat.com>
Sun, 13 Jun 2010 15:34:45 +0000 (17:34 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 14 Jun 2010 20:34:42 +0000 (22:34 +0200)
commit280b15249c9983d61707a00b6a462eb1df448c78
tree6d4fe264fe1c45ae1b57cbbac8601dea796c605e
parentd9ddd4c5032d9d01df6cfeb30cfb73d185aad9b7
dd: print a better diagnostic for an invalid block size

* src/dd.c (dd_copy): Give a better diagnostic than
"dd: memory exhausted" for an over-large bs= block size setting.
Same for ibs= and obs=.  Reported by Imre PĂ©ntek in
http://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/591969
src/dd.c