summaryrefslogtreecommitdiffstats
path: root/bin/dd/dd.c
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>1999-09-12 18:56:12 +0000
committergreen <green@FreeBSD.org>1999-09-12 18:56:12 +0000
commite40ba941364b555156f97e792df57b178b8d291c (patch)
tree841889466b6e74e92a217d795e01cf9d1cb79530 /bin/dd/dd.c
parent347920f6fbdf6bb321a5895694e2ed2ae9b260ee (diff)
downloadFreeBSD-src-e40ba941364b555156f97e792df57b178b8d291c.zip
FreeBSD-src-e40ba941364b555156f97e792df57b178b8d291c.tar.gz
ISDISK -> ISSEEK
Allow a device type of D_DISK or D_MEM to be ISSEEK.
Diffstat (limited to 'bin/dd/dd.c')
-rw-r--r--bin/dd/dd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/dd/dd.c b/bin/dd/dd.c
index 617cd51..ebfa792 100644
--- a/bin/dd/dd.c
+++ b/bin/dd/dd.c
@@ -222,8 +222,8 @@ getfdtype(io)
} else {
if (type & D_TAPE)
io->flags |= ISTAPE;
- else if (type & D_DISK)
- io->flags |= ISDISK;
+ else if (type & (D_DISK | D_MEM))
+ io->flags |= ISSEEK;
if (S_ISCHR(sb.st_mode) && (type & D_TAPE) == 0)
io->flags |= ISCHR;
}
OpenPOWER on IntegriCloud