Ownership of ls-R
OBS-URL: https://build.opensuse.org/package/show/Publishing:TeXLive/texlive-filesystem?expand=0&rev=117
This commit is contained in:
parent
57e89f2228
commit
7024729c08
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 16 12:02:43 UTC 2020 - Dr. Werner Fink <werner@suse.de>
|
||||
|
||||
- Be sure that owner of ls-R files are corrected even on update
|
||||
of already existing texlive filesystem
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 10 12:35:50 UTC 2020 - Dr. Werner Fink <werner@suse.de>
|
||||
|
||||
|
@ -48,6 +48,7 @@ Requires(post): %fillup_prereq
|
||||
Requires(post): permissions
|
||||
Requires(post): /usr/bin/mktemp
|
||||
Requires(post): /usr/bin/mv
|
||||
Requires(pre): /usr/bin/stat
|
||||
Requires(pre): /usr/bin/perl
|
||||
Requires(pre): /usr/bin/clear
|
||||
Requires(pre): /usr/bin/dialog
|
||||
@ -15387,6 +15388,19 @@ popd
|
||||
|
||||
%pre
|
||||
%{_bindir}/getent group %{texgrp} > /dev/null 2>&1 || %{_sbindir}/groupadd -r %{?texgid:-g %texgid} %{texgrp}
|
||||
# the ls-R file on update
|
||||
error=0
|
||||
for dir in %{_texmfconfdir} \
|
||||
%{_fontcache} \
|
||||
%{_texmfvardir} \
|
||||
%{_texmfvardir}/dist \
|
||||
%{_texmfvardir}/main
|
||||
do
|
||||
test -e ${dir}/ls-R || continue
|
||||
test "$(stat --format '%U:%G' ${dir}/ls-R)" != %{nobody}:%{texgrp} || continue
|
||||
chown %{nobody}:%{texgrp} ${dir}/ls-R || error=1
|
||||
done
|
||||
test $error = 0 || exit 1
|
||||
|
||||
%post
|
||||
%fillup_only -n texlive
|
||||
|
Loading…
x
Reference in New Issue
Block a user