From owner-svn-src-stable@FreeBSD.ORG Mon Sep 16 16:43:58 2013 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 2AF8FB27; Mon, 16 Sep 2013 16:43:58 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 13D8C2B2D; Mon, 16 Sep 2013 16:43:58 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r8GGhvvp076004; Mon, 16 Sep 2013 16:43:57 GMT (envelope-from delphij@svn.freebsd.org) Received: (from delphij@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r8GGhv97076003; Mon, 16 Sep 2013 16:43:57 GMT (envelope-from delphij@svn.freebsd.org) Message-Id: <201309161643.r8GGhv97076003@svn.freebsd.org> From: Xin LI Date: Mon, 16 Sep 2013 16:43:57 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r255616 - stable/9/usr.sbin/mtree X-SVN-Group: stable-9 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: Mon, 16 Sep 2013 16:43:58 -0000 Author: delphij Date: Mon Sep 16 16:43:57 2013 New Revision: 255616 URL: http://svnweb.freebsd.org/changeset/base/255616 Log: MFC r255483: Do not emit size for non-regular files. There is nothing that mtree(1) can do in this situation and would cause confusion. Modified: stable/9/usr.sbin/mtree/create.c Directory Properties: stable/9/usr.sbin/mtree/ (props changed) Modified: stable/9/usr.sbin/mtree/create.c ============================================================================== --- stable/9/usr.sbin/mtree/create.c Mon Sep 16 15:10:11 2013 (r255615) +++ stable/9/usr.sbin/mtree/create.c Mon Sep 16 16:43:57 2013 (r255616) @@ -208,7 +208,7 @@ statf(int indent, FTSENT *p) output(indent, &offset, "mode=%#o", p->fts_statp->st_mode & MBITS); if (keys & F_NLINK && p->fts_statp->st_nlink != 1) output(indent, &offset, "nlink=%u", p->fts_statp->st_nlink); - if (keys & F_SIZE) + if (keys & F_SIZE && S_ISREG(p->fts_statp->st_mode)) output(indent, &offset, "size=%jd", (intmax_t)p->fts_statp->st_size); if (keys & F_TIME)