Don't emit use-tmp-in-* for commented out /tmp in scriptlets.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1879 9bc8b190-ac0f-0410-8968-dc7d1f502856
This commit is contained in:
parent
64d9e2ac8b
commit
4054c21114
|
@ -43,7 +43,7 @@ home_regex = re.compile('[^a-zA-Z]+~/|\${?HOME(\W|$)', re.MULTILINE)
|
|||
dangerous_command_regex = re.compile("(^|[;\|`]|&&|$\()\s*(?:\S*/s?bin/)?(cp|mv|ln|tar|rpm|chmod|chown|rm|cpio|install|perl|userdel|groupdel)\s", re.MULTILINE)
|
||||
selinux_regex = re.compile("(^|[;\|`]|&&|$\()\s*(?:\S*/s?bin/)?(chcon|runcon)\s", re.MULTILINE)
|
||||
single_command_regex = re.compile("^[ \n]*([^ \n]+)[ \n]*$")
|
||||
tmp_regex = re.compile('\s(/var)?/tmp', re.MULTILINE)
|
||||
tmp_regex = re.compile('^[^#]*\s(/var)?/tmp', re.MULTILINE)
|
||||
menu_regex = re.compile('^/usr/lib/menu/|^/etc/menu-methods/|^/usr/share/applications/')
|
||||
bogus_var_regex = re.compile('(\${?RPM_BUILD_(ROOT|DIR)}?)')
|
||||
|
||||
|
|
Loading…
Reference in New Issue