summaryrefslogtreecommitdiffstats
path: root/bin/dd
diff options
context:
space:
mode:
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 394f593..2a8891b 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 */
OpenPOWER on IntegriCloud