Date: Sat, 17 Jul 2010 14:22:48 -0700 From: Garrett Cooper <gcooper@FreeBSD.org> To: joris dedieu <joris.dedieu@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: [PATCH] allow empty files creation with install Message-ID: <AANLkTimAzrCB0ZWMt0eTAWEX3XdeMgU2vySgfO1cemMm@mail.gmail.com> In-Reply-To: <AANLkTimMKTOUnUUAZKntuYneBcB9qPCORqDZMybMNWca@mail.gmail.com> References: <AANLkTimMKTOUnUUAZKntuYneBcB9qPCORqDZMybMNWca@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jul 17, 2010 at 6:34 AM, joris dedieu <joris.dedieu@gmail.com> 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 And why isn't creating a 4-command bourne shell script which does all of these operations an option? install is used a lot in the build process both on the FreeBSD side and the ports side, so I'd prefer if it was as minimalist as possible. Thanks, -Garrett
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimAzrCB0ZWMt0eTAWEX3XdeMgU2vySgfO1cemMm>