diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-01-26 11:13:40 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-01-26 11:13:40 +0000 |
| commit | cd967e322a7ab84828611c77f35376cd6edb7c0d (patch) | |
| tree | 7b897bb8645fffe45fa65b108b212abfdb133f45 | |
| parent | f080d33b66306419b40c2f2a879198d3d5a8d36c (diff) | |
Notes
| -rw-r--r-- | bin/dd/dd.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/bin/dd/dd.c b/bin/dd/dd.c index f797a7b91231..78558d206d31 100644 --- a/bin/dd/dd.c +++ b/bin/dd/dd.c @@ -221,14 +221,8 @@ getfdtype(IO *io) } else { if (type & D_TAPE) io->flags |= ISTAPE; - else if (type & (D_DISK | D_MEM)) { - if (type & D_DISK) { - const int one = 1; - - (void)ioctl(io->fd, DIOCWLABEL, &one); - } + else if (type & (D_DISK | D_MEM)) io->flags |= ISSEEK; - } if (S_ISCHR(sb.st_mode) && (type & D_TAPE) == 0) io->flags |= ISCHR; } |
