bin/130857: /bin/dd if=/dev/acd0 returned error "invalid parameter"
Tri Brotoharsono
tbh at ittelkom.ac.id
Wed Jan 21 22:10:04 PST 2009
>Number: 130857
>Category: bin
>Synopsis: /bin/dd if=/dev/acd0 returned error "invalid parameter"
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Jan 22 06:10:03 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Tri Brotoharsono
>Release: FreeBSD i386 7-STABLE
>Organization:
IT Telkom
>Environment:
FreeBSD broto.stttelkom.ac.id 7.1-STABLE FreeBSD 7.1-STABLE #6: Wed Jan 21 13:22:21 WIT 2009 broto at broto.stttelkom.ac.id:/usr/obj/usr/src/sys/GENERIC i386
>Description:
Invoking command /bin/dd with input file CDROM device file returned invalid parameter
Example:
# dd if=/dev/acd0 of=dd.iso
dd: /dev/acd0: Invalid argument
0+0 records in
0+0 records out
0 bytes transferred in 0.000080 secs (0 bytes/sec)
#
>How-To-Repeat:
dd if=/dev/acd0 of=<output file>
>Fix:
cd /usr/src/bin/dd
patch < /path/to/patchfile
make install
Patch attached with submission follows:
--- dd.c 2009-01-22 12:27:26.000000000 +0700
+++ dd.c.orig 2009-01-22 12:27:17.000000000 +0700
@@ -121,7 +121,7 @@
in.name = "stdin";
in.fd = STDIN_FILENO;
} else {
- in.fd = open(in.name, O_RDONLY);
+ in.fd = open(in.name, O_RDONLY, 0);
if (in.fd == -1)
err(1, "%s", in.name);
}
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list