From owner-svn-src-stable@FreeBSD.ORG Tue May 7 09:48:42 2013 Return-Path: Delivered-To: svn-src-stable@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 E1D33E88; Tue, 7 May 2013 09:48:42 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id D42D4C3B; Tue, 7 May 2013 09:48:42 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r479mgMP035588; Tue, 7 May 2013 09:48:42 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r479mg8q035587; Tue, 7 May 2013 09:48:42 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201305070948.r479mg8q035587@svn.freebsd.org> From: Konstantin Belousov Date: Tue, 7 May 2013 09:48:42 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r250329 - stable/8/bin/dd X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 May 2013 09:48:43 -0000 Author: kib Date: Tue May 7 09:48:42 2013 New Revision: 250329 URL: http://svnweb.freebsd.org/changeset/base/250329 Log: MFC r249811: 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 Modified: stable/8/bin/dd/dd.c Directory Properties: stable/8/bin/dd/ (props changed) Modified: stable/8/bin/dd/dd.c ============================================================================== --- stable/8/bin/dd/dd.c Tue May 7 09:47:12 2013 (r250328) +++ stable/8/bin/dd/dd.c Tue May 7 09:48:42 2013 (r250329) @@ -351,7 +351,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;