From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 17 14:11:56 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 035B11065785 for ; Sat, 17 Jul 2010 14:11:56 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-px0-f182.google.com (mail-px0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id C9BD38FC08 for ; Sat, 17 Jul 2010 14:11:55 +0000 (UTC) Received: by pxi8 with SMTP id 8so1504641pxi.13 for ; Sat, 17 Jul 2010 07:11:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=5bHA5y7o0doKDz/SIfqw2HtVfidu3NXcTJsJR7y4TY4=; b=iH8OagThBvqBK1bw5TLIqNR1F0fn1G3182ja/sclmtX2ZfwqLNcty0kFbHfsAoKmb3 V5d5GlQbNBORxC+VSsrJfiDmIqlguVx5tfiE9UjKzzjWd0qhKRsLNWff6+XNfBNoHi9E kc47gtE+WeneL9QG5UfhQg1QRZmCa6HoScTVc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=Qji/4w4TOfhwDY6rBXe6P+6/FH31ocqYIp1E8YseFMaxo28IoEyjcZOdJevEvs87BJ UmJMS1c5+9KwNsEWWOc2S/Gj6Fw+2lPdCrVSOJ/l5iD0YZVSXObtElEBSnSb32LH0jQN +MuWTQ0MOHYuk9uIEMtLxWyqk7SVdye+PExLY= Received: by 10.142.216.21 with SMTP id o21mr3371049wfg.231.1279375915096; Sat, 17 Jul 2010 07:11:55 -0700 (PDT) Received: from localhost ([120.50.40.184]) by mx.google.com with ESMTPS id c15sm14578173rvi.23.2010.07.17.07.11.47 (version=SSLv3 cipher=RC4-MD5); Sat, 17 Jul 2010 07:11:53 -0700 (PDT) From: Anonymous To: joris dedieu References: Date: Sat, 17 Jul 2010 18:11:29 +0400 In-Reply-To: (joris dedieu's message of "Sat, 17 Jul 2010 15:34:08 +0200") Message-ID: <86630emc4u.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailman-Approved-At: Sat, 17 Jul 2010 14:33:18 +0000 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:56 -0000 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 for f in .history .bash_history; do install -o foo -g foo -m 600 -f sappend /dev/null /usr/home/foo/$f done > > 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.