summaryrefslogtreecommitdiff
path: root/bin/dd
diff options
context:
space:
mode:
authorEivind Eklund <eivind@FreeBSD.org>1997-10-08 12:59:14 +0000
committerEivind Eklund <eivind@FreeBSD.org>1997-10-08 12:59:14 +0000
commitbd6b64117be7d0f53ad8a12256f42ac17a223a8a (patch)
tree34d8afbde620e5283ec47f449b7734858a534a1f /bin/dd
parent4c33974251c4d1b9101e0a3ec40d7f9ecf35ba69 (diff)
Notes
Diffstat (limited to 'bin/dd')
-rw-r--r--bin/dd/misc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/dd/misc.c b/bin/dd/misc.c
index 394f59381392..2a8891b6362d 100644
--- a/bin/dd/misc.c
+++ b/bin/dd/misc.c
@@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: misc.c,v 1.7 1997/02/22 14:02:47 peter Exp $
*/
#ifndef lint
@@ -91,8 +91,10 @@ void
summaryx(notused)
int notused;
{
+ int save_errno = errno;
summary();
+ errno = save_errno;
}
/* ARGSUSED */