FreeBSD Bugzilla – Attachment 11325 Details for
Bug 22347
dd copies incorrect data after 2^32 bytes and I/O error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.51 KB, created by
James Risner
on 2000-10-27 15:20:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
James Risner
Created:
2000-10-27 15:20:01 UTC
Size:
1.51 KB
patch
obsolete
>*** dd.c.orig Fri Oct 27 02:58:31 2000 >--- dd.c Fri Oct 27 03:02:03 2000 >*************** >*** 416,422 **** > if (pending != 0) { > if (force) > pending--; >! if (lseek(out.fd, pending, SEEK_CUR) == > -1) > err(2, "%s: seek error creating sparse file", > out.name); >--- 416,422 ---- > if (pending != 0) { > if (force) > pending--; >! if (lseek(out.fd, (off_t) pending, SEEK_CUR) == > -1) > err(2, "%s: seek error creating sparse file", > out.name); >*** position.c.orig Fri Oct 27 02:58:45 2000 >--- position.c Fri Oct 27 03:01:49 2000 >*************** >*** 70,76 **** > /* If known to be seekable, try to seek on it. */ > if (in.flags & ISSEEK) { > errno = 0; >! if (lseek(in.fd, in.offset * in.dbsz, SEEK_CUR) == -1 && > errno != 0) > err(1, "%s", in.name); > return; >--- 70,76 ---- > /* If known to be seekable, try to seek on it. */ > if (in.flags & ISSEEK) { > errno = 0; >! if (lseek(in.fd, (off_t) (in.offset * in.dbsz), SEEK_CUR) == -1 && > errno != 0) > err(1, "%s", in.name); > return; >*************** >*** 132,138 **** > */ > if (out.flags & (ISSEEK | ISPIPE)) { > errno = 0; >! if (lseek(out.fd, out.offset * out.dbsz, SEEK_CUR) == -1 && > errno != 0) > err(1, "%s", out.name); > return; >--- 132,138 ---- > */ > if (out.flags & (ISSEEK | ISPIPE)) { > errno = 0; >! if (lseek(out.fd, (off_t) (out.offset * out.dbsz), SEEK_CUR) == -1 && > errno != 0) > err(1, "%s", out.name); > return;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 22347
: 11325