Date: Sat, 17 Jul 2010 17:11:36 +0300 From: Kostik Belousov <kostikbel@gmail.com> To: joris dedieu <joris.dedieu@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: [PATCH] allow empty files creation with install Message-ID: <20100717141136.GH2381@deviant.kiev.zoral.com.ua> In-Reply-To: <AANLkTimMKTOUnUUAZKntuYneBcB9qPCORqDZMybMNWca@mail.gmail.com> References: <AANLkTimMKTOUnUUAZKntuYneBcB9qPCORqDZMybMNWca@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100717141136.GH2381>