Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Nov 2012 07:43:58 +0000 (UTC)
From:      Nick Hibma <n_hibma@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r306782 - head/dns/pdnsd
Message-ID:  <201211010743.qA17hwHN042086@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: n_hibma (src committer)
Date: Thu Nov  1 07:43:58 2012
New Revision: 306782
URL: http://svn.freebsd.org/changeset/ports/306782

Log:
  /dev is not populated when using pkg_add -C to install a package into a
  chroot (NanoBSD for example). So use truncate -s... instead of dd
  if=/dev/zero... to initialise the pdns DB.
  
  PR:		pors/172268
  Submitted by:	n_hibma
  Feature safe:	yes

Modified:
  head/dns/pdnsd/pkg-install

Modified: head/dns/pdnsd/pkg-install
==============================================================================
--- head/dns/pdnsd/pkg-install	Thu Nov  1 07:38:12 2012	(r306781)
+++ head/dns/pdnsd/pkg-install	Thu Nov  1 07:43:58 2012	(r306782)
@@ -4,6 +4,6 @@ PDNSDB=/var/db/pdnsd
 mkdir -p ${PDNSDB}
 chown nobody ${PDNSDB}
 chmod 755 ${PDNSDB}
-dd if=/dev/zero of=${PDNSDB}/pdnsd.cache bs=1 count=4 >/dev/null 2>&1
+truncate -s 4 ${PDNSDB}
 chown nobody ${PDNSDB}/pdnsd.cache
 chmod 640 ${PDNSDB}/pdnsd.cache



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211010743.qA17hwHN042086>