Bug 41019 - repocop-report: нечитаемый текст
Summary: repocop-report: нечитаемый текст
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: repocop-report-html (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: viy
QA Contact: qa-sisyphus
URL:
Keywords:
: 22218 (view as bug list)
Depends on:
Blocks: 22555
  Show dependency tree
 
Reported: 2021-09-28 11:09 MSK by viy
Modified: 2021-11-12 09:34 MSK (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description viy 2021-09-28 11:09:46 MSK
пример:
vlc-mini-3.0.16-alt1.x86_64	unsafe-tmp-usage-in-scripts	fail	The test discovered scripts with errors which may be used by a user for damaging important system files. For example if a script uses in its work a temp file which is created in /tmp directory, then every user can create symlinks with the same name (pattern) in this directory in order to destroy or rewrite some system or another user's files. Scripts _must_ _use_ mktemp/tempfile or must use $TMPDIR. mktemp/tempfile is safest. $TMPDIR is safer than /tmp/ because libpam-tmpdir creates a subdirectory of /tmp that is only accessible by that user, and then sets TMPDIR and other variables to that. Hence, it doesn't matter nearly as much if you create a non-random filename, because nobody but you can access it. Found error in /usr/share/vlc/utils/audio-vlc-default.sh: $ grep -A5 -B5 /tmp/ /usr/share/vlc/utils/audio-vlc-default.sh MIME_FILE=~/.local/share/applications/defaults.list if [ ! -f $MIME_FILE ] then echo "[Default Applications]" > $MIME_FILE else grep -v 'audio/' $MIME_FILE > /tmp/vlc.defaults.list.tmp mv /tmp/vlc.defaults.list.tmp $MIME_FILE fi ls /usr/share/mime/audio/* | sed -e 's@/usr/share/mime/@@' -e 's/\.xml/=vlc.desktop/' >> $MIME_FILE Found error in /usr/share/vlc/utils/video-vlc-default.sh: $ grep -A5 -B5 /tmp/ /usr/share/vlc/utils/video-vlc-default.sh MIME_FILE=~/.local/share/applications/defaults.list if [ ! -f $MIME_FILE ] then echo "[Default Applications]" > $MIME_FILE else grep -v 'video/' $MIME_FILE > /tmp/vlc.defaults.list.tmp mv /tmp/vlc.defaults.list.tmp $MIME_FILE fi ls /usr/share/mime/video/* | sed -e 's@/usr/share/mime/@@' -e 's/\.xml/=vlc.desktop/' >> $MIME_FILE; 


тут текст вообще не читаем, в html версии тоже.

Можно как-то его отформатировать ?
Comment 1 viy 2021-11-11 21:53:09 MSK
из 22218 
Думаю, имеет смысл как-то разбивать на абзацы, ну и по крайней мере
поработать с переносами строк, чтобы те же пути, адреса или цитаты были
отделены от остального текста.
Comment 2 viy 2021-11-11 21:55:36 MSK
*** Bug 22218 has been marked as a duplicate of this bug. ***
Comment 3 Anton Farygin 2021-11-12 09:34:33 MSK
(Ответ для viy на комментарий #1)
> из 22218 
> Думаю, имеет смысл как-то разбивать на абзацы, ну и по крайней мере
> поработать с переносами строк, чтобы те же пути, адреса или цитаты были
> отделены от остального текста.

да, конечно. 
Много не нужно, достаточно вставить переносы.