Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.2
policycoreutils
chcat_join.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File chcat_join.patch of Package policycoreutils
Index: policycoreutils-3.0/selinux-python-3.0/chcat/chcat =================================================================== --- policycoreutils-3.0.orig/selinux-python-3.0/chcat/chcat +++ policycoreutils-3.0/selinux-python-3.0/chcat/chcat @@ -245,7 +245,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], ",".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