summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>1999-10-04 17:11:53 +0000
committermycroft <mycroft@NetBSD.org>1999-10-04 17:11:53 +0000
commit713ea8dcdec89e35e1fef9be5eaf5a74dfd0b89c (patch)
tree8ff1213cc7fa9b8be11bc0cc60785fc06b0c4a13
parentf6624fbbee2edb4f6968258abcae46d9c437617f (diff)
Use lseek(2) on character devices, damn it.
-rw-r--r--bin/dd/position.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/dd/position.c b/bin/dd/position.c
index e302477a64f..192b6a7ce80 100644
--- a/bin/dd/position.c
+++ b/bin/dd/position.c
@@ -1,4 +1,4 @@
-/* $NetBSD: position.c,v 1.6 1997/07/25 06:46:24 phil Exp $ */
+/* $NetBSD: position.c,v 1.7 1999/10/04 17:11:53 mycroft Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)position.c 8.3 (Berkeley) 4/2/94";
#else
-__RCSID("$NetBSD: position.c,v 1.6 1997/07/25 06:46:24 phil Exp $");
+__RCSID("$NetBSD: position.c,v 1.7 1999/10/04 17:11:53 mycroft Exp $");
#endif
#endif /* not lint */
@@ -71,7 +71,7 @@ pos_in()
int bcnt, cnt, nr, warned;
/* If not a character, pipe or tape device, try to seek on it. */
- if (!(in.flags & (ISCHR|ISPIPE|ISTAPE))) {
+ if (!(in.flags & (ISPIPE|ISTAPE))) {
if (lseek(in.fd, (off_t)in.offset * (off_t)in.dbsz, SEEK_CUR)
== -1)
err(1, "%s", in.name);