From owner-freebsd-standards@FreeBSD.ORG Mon Apr 22 11:06:51 2013 Return-Path: Delivered-To: freebsd-standards@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id EFF43600 for ; Mon, 22 Apr 2013 11:06:51 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id D7130108F for ; Mon, 22 Apr 2013 11:06:51 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r3MB6p0S089271 for ; Mon, 22 Apr 2013 11:06:51 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r3MB6p9o089267 for freebsd-standards@FreeBSD.org; Mon, 22 Apr 2013 11:06:51 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 22 Apr 2013 11:06:51 GMT Message-Id: <201304221106.r3MB6p9o089267@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-standards@FreeBSD.org Subject: Current problem reports assigned to freebsd-standards@FreeBSD.org X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Apr 2013 11:06:52 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o stand/177742 standards conflict of dd's bs= option with use of conv=sparse o stand/176683 standards catman pages shall be stored in /var (/usr/local/var,/ o stand/176412 standards newfs writes by default, compare to bsdlabel/disklabel o stand/175711 standards When the server has more than 3 days, rising interrupt o stand/175453 standards Catching C++ std::bad_cast doesn't work in FreeBSD 9.1 o stand/174938 standards Problem statement: iSCSI target failure o stand/173421 standards [libc] [patch] strptime() accepts formats that should o stand/173087 standards pax(1) does not support the pax interchange format o stand/172805 standards Fix catopen(3)'s EINVAL usage and document EFTYPE o stand/172276 standards POSIX: {get,set}groups gidsetsize is u_int not int o stand/172215 standards localeconv() grouping appears not to match POSIX o stand/170403 standards wrong ntohs expression type tickling clang o stand/169697 standards syslogd(8) is not BOM aware o stand/166349 standards Support the assignment-allocation character for fscanf o stand/164787 standards dirfd() function not available when _POSIX_C_SOURCE is o kern/164674 standards [patch] [libc] vfprintf/vfwprintf return error (EOF) o o stand/162434 standards getaddrinfo: addrinfo.ai_family is an address family, o stand/150093 standards C++ std::locale support is broken o stand/130067 standards Wrong numeric limits in system headers? o stand/124860 standards flockfile(3) doesn't work when the memory has been exh o stand/121921 standards [patch] Add leap second support to at(1), atrun(8) o stand/116477 standards rm(1): rm behaves unexpectedly when using -r and relat o bin/116413 standards incorrect getconf(1) handling of unsigned constants gi o stand/116081 standards make does not work with the directive sinclude o stand/100017 standards [Patch] Add fuser(1) functionality to fstat(1) a stand/86484 standards [patch] mkfifo(1) uses wrong permissions o stand/82654 standards C99 long double math functions are missing o stand/81287 standards [patch] fingerd(8) might send a line not ending in CRL a stand/80293 standards sysconf() does not support well-defined unistd values o stand/79056 standards [feature request] [atch] regex(3) regression tests o stand/70813 standards [patch] ls(1) not Posix compliant o stand/66357 standards make POSIX conformance problem ('sh -e' & '+' command- s kern/64875 standards [libc] [patch] [request] add a system call: fdatasync( o stand/56476 standards [patch] cd9660 unicode support simple hack o stand/54410 standards one-true-awk not POSIX compliant (no extended REs) o stand/46119 standards Priority problems for SCHED_OTHER using pthreads o stand/44365 standards [headers] [patch] [request] introduce ulong and unchar a stand/41576 standards ln(1): replacing old dir-symlinks a docs/26003 standards getgroups(2) lists NGROUPS_MAX but not syslimits.h s stand/24590 standards timezone function not compatible witn Single Unix Spec o stand/21519 standards sys/dir.h should be deprecated some more s bin/14925 standards getsubopt isn't poisonous enough 42 problems total. From owner-freebsd-standards@FreeBSD.ORG Tue Apr 23 06:30:01 2013 Return-Path: Delivered-To: freebsd-standards@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 82B35CFB for ; Tue, 23 Apr 2013 06:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 650A71AF8 for ; Tue, 23 Apr 2013 06:30:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r3N6U1QA030413 for ; Tue, 23 Apr 2013 06:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r3N6U1b4030412; Tue, 23 Apr 2013 06:30:01 GMT (envelope-from gnats) Date: Tue, 23 Apr 2013 06:30:01 GMT Message-Id: <201304230630.r3N6U1b4030412@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org Cc: From: Konstantin Belousov Subject: Re: standards/177742: conflict of dd's bs= option with use of conv=sparse X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Konstantin Belousov List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Apr 2013 06:30:01 -0000 The following reply was made to PR standards/177742; it has been noted by GNATS. From: Konstantin Belousov To: Matthew Rezny Cc: bug-followup@FreeBSD.org Subject: Re: standards/177742: conflict of dd's bs= option with use of conv=sparse Date: Tue, 23 Apr 2013 09:21:23 +0300 --SvF6CGw9fzJC4Rcx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 11, 2013 at 05:44:59AM +0200, Matthew Rezny wrote: > Looking not just at my problem but the overall situation, it seems the > logic in dd_in() does not hold up. The last line, (*cfunc)();, actually > invokes the appropriate conversion(s) and then calls dd_out(0). With > the simple test on line 361, we will never get down to that call if bs=3D > option is used. Really, to make the code fit the comment, it should > probably be something like > if ((ddflags & ~(C_NOERROR | C_NOTRUNC | C_SYNC)) =3D=3D C_BS) { > out.dbcnt =3D in.dbcnt; > dd_out(0); > in.dbcnt =3D 0; > continue; > } I do not see why did you changed dd_out(1) to dd_out(0). Anyway, I am going to commit the following patch, unless I get some objection in two-three days: commit 37664b1393db30d97aa9eefa70360cd550bf9dd9 Author: Konstantin Belousov Date: Tue Apr 23 09:18:31 2013 +0300 Literally follow POSIX: If the bs=3D expr operand is specified and no conversions other than sy= nc, noerror, or notrunc are requested, the data returned from each input block shall be written as a separate output block. =20 PR: standards/177742 Submitted by: Matthew Rezny diff --git a/bin/dd/dd.c b/bin/dd/dd.c index 01b66fc..9d0f9b1 100644 --- a/bin/dd/dd.c +++ b/bin/dd/dd.c @@ -358,7 +358,7 @@ dd_in(void) * than noerror, notrunc or sync are specified, the block * is output without buffering as it is read. */ - if (ddflags & C_BS) { + if ((ddflags & ~(C_NOERROR | C_NOTRUNC | C_SYNC)) =3D=3D C_BS) { out.dbcnt =3D in.dbcnt; dd_out(1); in.dbcnt =3D 0; --SvF6CGw9fzJC4Rcx Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQIcBAEBAgAGBQJRdihiAAoJEJDCuSvBvK1BMCAQAKLZOlG4LmQ3vKztqcKc8y// irjQYUgzWhD0nVS3JrwSiJ4jXsh2VgSWSllFWgynrcObJ57elV567Ficn9CBYYLl SD2Z+mqENhdO8e1gliAQ80hkUnqdRKHko8NRJmcqN21/G/6cEC5ACAiuzkMtY7xA 08A3/3nJF0fG/TpgMFbflv6j8ILN7r4HM52lAaobZph6B6bIfY2ravRVGMuT8/Vs UZy1S4yZAFRZXmT5L+jpTTlQkavI9dQEGybV1ILmmNFmJDFRVibUs2CEmrgVKQCN wmIxwkfIzBHlzdeUK7EpcZQkB9RZUyLmghaubE2vEXkvvBD2+QEKn51UO4o1CDK7 LVl1Dz9jRzjJzyjLGfGm+J8qNS3qyg81A0E93kIf1qB0PFTEK05RXKWsP/aYDx/1 QqKBv3Zj8dJsul0gr7GUW/vywwZ17GTCjWGiXmrsPB9JrYLoY5W2x4x/Ycx7cBC+ XDdI3kRcOxLNxX4V0lD8yjeHwXUupSgfOqzFojplOTitvagPipwximEZQ4ok/0em uyr+26R/LZ97Ng5Ey+7/+Gv8Q0tV1EPsb7Vl+/cfPl5Y8ImELVKeNO+hoWVGUbCV eNSKIoJw71HbEvTjxtmerdH9PCXtuugwt1cn/rQCZCRR1PvIGgZjjkBd7D/7Aa23 ieviqWDI9xaMPM5cJrK2 =/6OP -----END PGP SIGNATURE----- --SvF6CGw9fzJC4Rcx-- From owner-freebsd-standards@FreeBSD.ORG Tue Apr 23 11:10:02 2013 Return-Path: Delivered-To: freebsd-standards@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 0FE5DBFF for ; Tue, 23 Apr 2013 11:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id DB7771773 for ; Tue, 23 Apr 2013 11:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r3NBA1uC085388 for ; Tue, 23 Apr 2013 11:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r3NBA11i085387; Tue, 23 Apr 2013 11:10:01 GMT (envelope-from gnats) Date: Tue, 23 Apr 2013 11:10:01 GMT Message-Id: <201304231110.r3NBA11i085387@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org Cc: From: Matthew Rezny Subject: Re: standards/177742: conflict of dd's bs= option with use of conv=sparse X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Matthew Rezny List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Apr 2013 11:10:02 -0000 The following reply was made to PR standards/177742; it has been noted by GNATS. From: Matthew Rezny To: Konstantin Belousov Cc: bug-followup@FreeBSD.org Subject: Re: standards/177742: conflict of dd's bs= option with use of conv=sparse Date: Tue, 23 Apr 2013 13:00:43 +0200 On Tue, 23 Apr 2013 09:21:23 +0300 Konstantin Belousov wrote: > On Thu, Apr 11, 2013 at 05:44:59AM +0200, Matthew Rezny wrote: > > Looking not just at my problem but the overall situation, it seems > > the logic in dd_in() does not hold up. The last line, (*cfunc)();, > > actually invokes the appropriate conversion(s) and then calls > > dd_out(0). With the simple test on line 361, we will never get down > > to that call if bs= option is used. Really, to make the code fit > > the comment, it should probably be something like > > if ((ddflags & ~(C_NOERROR | C_NOTRUNC | C_SYNC)) == C_BS) { > > out.dbcnt = in.dbcnt; > > dd_out(0); > > in.dbcnt = 0; > > continue; > > } > I do not see why did you changed dd_out(1) to dd_out(0). > > Anyway, I am going to commit the following patch, unless I get some > objection in two-three days: > > commit 37664b1393db30d97aa9eefa70360cd550bf9dd9 > Author: Konstantin Belousov > Date: Tue Apr 23 09:18:31 2013 +0300 > > Literally follow POSIX: > If the bs= expr operand is specified and no conversions other > than sync, noerror, or notrunc are requested, the data returned from > each input block shall be written as a separate output block. > > PR: standards/177742 > Submitted by: Matthew Rezny > > diff --git a/bin/dd/dd.c b/bin/dd/dd.c > index 01b66fc..9d0f9b1 100644 > --- a/bin/dd/dd.c > +++ b/bin/dd/dd.c > @@ -358,7 +358,7 @@ dd_in(void) > * than noerror, notrunc or sync are specified, the > block > * is output without buffering as it is read. > */ > - if (ddflags & C_BS) { > + if ((ddflags & ~(C_NOERROR | C_NOTRUNC | C_SYNC)) == > C_BS) { out.dbcnt = in.dbcnt; > dd_out(1); > in.dbcnt = 0; > On review, I think the dd_out(0) was an oversight. I put the more precise condition up top but then forgot to put it back to dd_out(1) as it had been. The one line patch you plan to commit should be effective. Thank you for taking the time to read my perhaps overly verbose report on the issue. From owner-freebsd-standards@FreeBSD.ORG Fri Apr 26 02:29:29 2013 Return-Path: Delivered-To: freebsd-standards@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A7F1B853; Fri, 26 Apr 2013 02:29:29 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 7BE9D169E; Fri, 26 Apr 2013 02:29:29 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r3Q2TTRx062584; Fri, 26 Apr 2013 02:29:29 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r3Q2TTXc062583; Fri, 26 Apr 2013 02:29:29 GMT (envelope-from linimon) Date: Fri, 26 Apr 2013 02:29:29 GMT Message-Id: <201304260229.r3Q2TTXc062583@freefall.freebsd.org> To: dfilter@FreeBSD.ORG, linimon@FreeBSD.org, gnats-admin@FreeBSD.org, freebsd-standards@FreeBSD.org From: linimon@FreeBSD.org Subject: Re: standards/178086: Re: standards/177742: commit references a PR X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Apr 2013 02:29:29 -0000 Old Synopsis: Re: standard/177742: commit references a PR New Synopsis: Re: standards/177742: commit references a PR State-Changed-From-To: open->closed State-Changed-By: linimon State-Changed-When: Fri Apr 26 02:28:02 UTC 2013 State-Changed-Why: Misfiled followup to standards/177742; content migrated. Responsible-Changed-From-To: gnats-admin->freebsd-standards Responsible-Changed-By: linimon Responsible-Changed-When: Fri Apr 26 02:28:02 UTC 2013 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=178086