From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 17 18:20:43 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 D950E106566C for ; Sat, 17 Jul 2010 18:20:43 +0000 (UTC) (envelope-from joris.dedieu@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6C92D8FC20 for ; Sat, 17 Jul 2010 18:20:43 +0000 (UTC) Received: by ewy26 with SMTP id 26so1191824ewy.13 for ; Sat, 17 Jul 2010 11:20:42 -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 :content-transfer-encoding; bh=jAjRNJscL1se+x1nqxQvBVXbw67PGAF2SbcOAjAM4v8=; b=wDBwoE4jz+i15tGjxBEHnt72w5v6Bcc+Nk2u+OwZFghHvQFHZ0iCa2t8Z9bq/10sRO imGyLSGzFmSKzImVV3XGDrON8r2U1fxyweR62ccVI1WY3slo/dJXz+YU+kJjcH9NbS7x ffdycdJGOsd/YBvQuROjoYo3lCqfRP7zN6aGU= 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:content-transfer-encoding; b=eLj/H2spAF/afui+ZPcq83wNYfmQ/yJnVFAlgemPFO75nl1zK2Pv1XCFD4wBK+wk2n jntfYs4Gb2hjDkO5+DBxw9z0M58mB/pocIPrYram7PeNZjtOsX+/txKZBLgXKIlOA9Ui /hNKW7J+TMJyQc3vURkPJEJYGDYdXJcVAs8ic= MIME-Version: 1.0 Received: by 10.213.20.10 with SMTP id d10mr2429065ebb.87.1279390842216; Sat, 17 Jul 2010 11:20:42 -0700 (PDT) Received: by 10.213.36.15 with HTTP; Sat, 17 Jul 2010 11:20:42 -0700 (PDT) In-Reply-To: <86630emc4u.fsf@gmail.com> References: <86630emc4u.fsf@gmail.com> Date: Sat, 17 Jul 2010 20:20:42 +0200 Message-ID: From: joris dedieu To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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:20:43 -0000 2010/7/17 Anonymous : > joris dedieu writes: > >> 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 > > =A0for f in .history .bash_history; do > =A0 =A0 =A0install -o foo -g foo -m 600 -f sappend /dev/null /usr/home/fo= o/$f > =A0done > >> >> after : >> >> install -o foo -g foo -m 600 -f sappend /usr/home/foo/.history /usr/home= /foo/.bash_history > > Your example doesn't use `-t' option. And it doesn't work sorry. install -o foo -g foo -m 600 -f sappend -t /usr/home/foo/.history >