Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Jul 2010 18:11:29 +0400
From:      Anonymous <swell.k@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:  <86630emc4u.fsf@gmail.com>
In-Reply-To: <AANLkTimMKTOUnUUAZKntuYneBcB9qPCORqDZMybMNWca@mail.gmail.com> (joris dedieu's message of "Sat, 17 Jul 2010 15:34:08 %2B0200")
References:  <AANLkTimMKTOUnUUAZKntuYneBcB9qPCORqDZMybMNWca@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
joris dedieu <joris.dedieu@gmail.com> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86630emc4u.fsf>