From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 17 14:11:41 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D1857106566B for ; Sat, 17 Jul 2010 14:11:41 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 4E12D8FC15 for ; Sat, 17 Jul 2010 14:11:40 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id o6HEBafj034245 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 17 Jul 2010 17:11:36 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id o6HEBaKc003900; Sat, 17 Jul 2010 17:11:36 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id o6HEBaum003899; Sat, 17 Jul 2010 17:11:36 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 17 Jul 2010 17:11:36 +0300 From: Kostik Belousov To: joris dedieu Message-ID: <20100717141136.GH2381@deviant.kiev.zoral.com.ua> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5joxkA65nhhP20dL" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-hackers@freebsd.org Subject: Re: [PATCH] allow empty files creation with install X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jul 2010 14:11:41 -0000 --5joxkA65nhhP20dL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 17, 2010 at 03:34:08PM +0200, joris dedieu wrote: > This patch add a -t switch to install(3). This is a small feature for > lazy sysadmins. >=20 > before : >=20 > touch /usr/home/foo/.history /usr/home/foo/.bash_history > chown foo /usr/home/foo/.history /usr/home/foo/.bash_history > chmod 600 /usr/home/foo/.history /usr/home/foo/.bash_history > chflags sappend /usr/home/foo/.history /usr/home/foo/.bash_history >=20 > after : >=20 > install -o foo -g foo -m 600 -f sappend /usr/home/foo/.history > /usr/home/foo/.bash_history >=20 Isn't /dev/null as a source file work better ? --5joxkA65nhhP20dL Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkxBuhgACgkQC3+MBN1Mb4girgCdFcSXrQzl6fGE602syziU+/WM qRcAniD68jpSHbvNxllZP/5HDr8m/wG1 =GD2J -----END PGP SIGNATURE----- --5joxkA65nhhP20dL--