Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP2
policycoreutils.13728
chcat_join.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File chcat_join.patch of Package policycoreutils.13728
Index: selinux-python-2.8/chcat/chcat =================================================================== --- selinux-python-2.8.orig/chcat/chcat 2018-05-24 18:21:09.000000000 +0000 +++ selinux-python-2.8/chcat/chcat 2019-12-17 11:01:17.056766838 +0000 @@ -247,7 +247,10 @@ def chcat_user_replace(newcat, users): add_ind = 1 user = seusers["__default__"] serange = user[1].split("-") - new_serange = "%s-%s:%s" % (serange[0], newcat[0], string.join(newcat[1:], ",")) + if len(newcat[1:]) > 0: + new_serange = "%s-%s:%s" % (serange[0], newcat[0], ",".join(newcat[1:])) + else: + new_serange = "%s-%s" % (serange[0], newcat[0]) if new_serange[-1:] == ":": new_serange = new_serange[:-1]
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor