diff options
author | green <green@FreeBSD.org> | 1999-09-12 18:56:12 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 1999-09-12 18:56:12 +0000 |
commit | e40ba941364b555156f97e792df57b178b8d291c (patch) | |
tree | 841889466b6e74e92a217d795e01cf9d1cb79530 /bin/dd/dd.c | |
parent | 347920f6fbdf6bb321a5895694e2ed2ae9b260ee (diff) | |
download | FreeBSD-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.c | 4 |
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; } |