From 40b843b528243d5f0d45ff34cc55d12547f94acd Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 28 Oct 2002 18:06:40 +0000 Subject: Seeking on a character device works fine. --- bin/dd/position.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/dd/position.c b/bin/dd/position.c index 0d02d2f7404..26e52f328fc 100644 --- a/bin/dd/position.c +++ b/bin/dd/position.c @@ -1,4 +1,4 @@ -/* $OpenBSD: position.c,v 1.4 2001/08/07 14:39:27 hugh Exp $ */ +/* $OpenBSD: position.c,v 1.5 2002/10/28 18:06:39 millert Exp $ */ /* $NetBSD: position.c,v 1.4 1995/03/21 09:04:12 cgd Exp $ */ /*- @@ -42,7 +42,7 @@ #if 0 static char sccsid[] = "@(#)position.c 8.3 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: position.c,v 1.4 2001/08/07 14:39:27 hugh Exp $"; +static char rcsid[] = "$OpenBSD: position.c,v 1.5 2002/10/28 18:06:39 millert Exp $"; #endif #endif /* not lint */ @@ -74,8 +74,8 @@ pos_in() off_t cnt; int warned; - /* If not a character, pipe or tape device, try to seek on it. */ - if (!(in.flags & (ISCHR|ISPIPE|ISTAPE))) { + /* If not a pipe or tape device, try to seek on it. */ + if (!(in.flags & (ISPIPE|ISTAPE))) { if (lseek(in.fd, in.offset * in.dbsz, SEEK_CUR) == -1) err(1, "%s", in.name); return; -- cgit v1.2.3