[PATCH] allow empty files creation with install
joris dedieu
joris.dedieu at gmail.com
Sat Jul 17 18:20:43 UTC 2010
2010/7/17 Anonymous <swell.k at gmail.com>:
> joris dedieu <joris.dedieu at 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.
And it doesn't work sorry.
install -o foo -g foo -m 600 -f sappend -t /usr/home/foo/.history
>
More information about the freebsd-hackers
mailing list