Date: Thu, 22 Jan 2009 06:00:10 GMT From: Tri Brotoharsono <tbh@ittelkom.ac.id> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/130857: /bin/dd if=/dev/acd0 returned error "invalid parameter" Message-ID: <200901220600.n0M60ARB006714@www.freebsd.org> Resent-Message-ID: <200901220610.n0M6A31k013844@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901220600.n0M60ARB006714>