[PATCH] allow empty files creation with install

joris dedieu joris.dedieu at gmail.com
Sat Jul 17 13:56:18 UTC 2010


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


Regards,
Joris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xinstall.patch
Type: application/octet-stream
Size: 4783 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20100717/6a34580d/xinstall.obj


More information about the freebsd-hackers mailing list