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