Re: Bug#352394: tex-common: permission scheme for /var/cache/fonts
Hi,
Norbert Preining <preining@logic.at> wrote:
> So we decided to
> find /var/cache/fonts -type d -exec chmod 02755 '{}' \;
> find /var/cache/fonts -type d -exec chown "root:$GROUP" '{} \;
This is perfectly correct (except that a single quote is missing in the
second line), but there is a much more efficient way to write these
things, which invokes chmod/chown only once (well, theoretically, it is
invoked the minimum number of times necessary given the maximum
command-line length...). For instance, the first line becomes:
find /var/cache/fonts -type d -print0 | xargs -0r chmod 02755
--
Florent
Reply to: