Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Jul 2010 20:20:42 +0200
From:      joris dedieu <joris.dedieu@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   Re: [PATCH] allow empty files creation with install
Message-ID:  <AANLkTilDdoAG_nXPwQJjCH37i4IQO4QgwKw9qHdtbdic@mail.gmail.com>
In-Reply-To: <86630emc4u.fsf@gmail.com>
References:  <AANLkTimMKTOUnUUAZKntuYneBcB9qPCORqDZMybMNWca@mail.gmail.com> <86630emc4u.fsf@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
2010/7/17 Anonymous <swell.k@gmail.com>:
> 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
>
> =A0for f in .history .bash_history; do
> =A0 =A0 =A0install -o foo -g foo -m 600 -f sappend /dev/null /usr/home/fo=
o/$f
> =A0done
>
>>
>> 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.
And it doesn't work sorry.
install -o foo -g foo -m 600 -f sappend -t /usr/home/foo/.history
>



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