From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 17 18:19:17 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 5D7351065674 for ; Sat, 17 Jul 2010 18:19:17 +0000 (UTC) (envelope-from joris.dedieu@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id E41958FC1A for ; Sat, 17 Jul 2010 18:19:16 +0000 (UTC) Received: by eyh6 with SMTP id 6so894535eyh.13 for ; Sat, 17 Jul 2010 11:19:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=tb93iwCXGJKKhdpa70BBV422ExkJItLwFNKrDOlg90Y=; b=FbP3OjGr2QI3wwHAtOH3zhigF9wOAq0SmsYfL2TNXwVM0iw6su2ixfmlXiPxuNtcCP RkotCcbq90r8nhpOfLNVe7PeHNtaWKQ5C6yMCow41bpLsObgFYfFxgquqroyl7/o8Fhn SyuCyg+y6QXIZFPL4cWhN8hVwUl7E/qGrwL4I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=FZL4nG4NVoBo+zD0reY09AKj0/qFGtpxcHK2gKwE5PWQySkMRTfyBTdichZ3SLikBJ 67ufNUxwIaf6IuHrWKqK1mUM75bFgWUWk+GFLOJ7x7xi06tJM84yuxJhQfvsvvlhkfCp R3Uga6rXUy2reZKE/mUgyEgiCMt0d3JlfIV2A= MIME-Version: 1.0 Received: by 10.213.13.133 with SMTP id c5mr915825eba.4.1279390755700; Sat, 17 Jul 2010 11:19:15 -0700 (PDT) Received: by 10.213.36.15 with HTTP; Sat, 17 Jul 2010 11:19:15 -0700 (PDT) In-Reply-To: <20100717141136.GH2381@deviant.kiev.zoral.com.ua> References: <20100717141136.GH2381@deviant.kiev.zoral.com.ua> Date: Sat, 17 Jul 2010 20:19:15 +0200 Message-ID: From: joris dedieu To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 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 18:19:17 -0000 2010/7/17 Kostik Belousov : > 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. >> >> before : >> >> 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 >> >> after : >> >> install -o foo -g foo -m 600 -f sappend /usr/home/foo/.history >> /usr/home/foo/.bash_history >> > > Isn't /dev/null as a source file work better ? Damned ! Why I never thought about this ? >