diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-10-28 18:06:40 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-10-28 18:06:40 +0000 |
commit | 40b843b528243d5f0d45ff34cc55d12547f94acd (patch) | |
tree | 02ec8f85985b2de03f676d3fbd0a0f97e95581c5 | |
parent | f13d5d15983a545200c0cff865d006b5917497f0 (diff) |
Seeking on a character device works fine.
-rw-r--r-- | bin/dd/position.c | 8 |
1 files 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; |