• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

libcgroup / libcgroup / 5602659835
56%

Build:
DEFAULT BRANCH: main
Ran 19 Jul 2023 06:17PM UTC
Jobs 6
Files 30
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
5602659835

push

github

drakenclimber
api.c: fix unused variable in cgroup_parse_rules_file()

Fix an unused variable warning, reported by the Coverity tool:

CID 320877 (#1 of 1): Unused value (UNUSED_VALUE) assigned_pointer:
Assigning value NULL to pwd here, but that stored value is overwritten
before it can be used.

Move the grp, pwd variables assignment to beginning of the while loop in
the cgroup_parse_rules_file().

Tested with following cgrules
-----------------------------
$ cat /etc/cgrules.conf
student         devices         /usergroup/students
@admin          *               admingroup/
peter           cpu             test1/
%               memory          test2/
*               *               default/

$ sudo CGROUP_LOGLEVEL=DEBUG ./src/daemon/cgrulesengd -d -n
Parsing configuration file /etc/cgrules.conf.
Added rule student (UID: 1001, GID: -1) -> /usergroup/students for
controllers: devices
Added rule @admin (UID: -1, GID: 1004) -> admingroup/ for controllers: *
Added rule peter (UID: 1003, GID: -1) -> test1/ for controllers: cpu
Added rule % (UID: 1003, GID: -1) -> test2/ for controllers: memory
Added rule * (UID: -2, GID: -2) -> default/ for controllers: *
Parsing of configuration file complete.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>

2 of 2 new or added lines in 1 file covered. (100.0%)

2 existing lines in 2 files now uncovered.

5591 of 9441 relevant lines covered (59.22%)

1372.07 hits per line

Jobs
ID Job ID Ran Files Coverage
1 Cgroup v1 Functional Tests - 5602659835.1 19 Jul 2023 06:20PM UTC 0
45.0
GitHub Action Run
2 Cgroup v2 Functional Tests - unified - 5602659835.2 19 Jul 2023 06:27PM UTC 0
51.33
GitHub Action Run
3 Cgroup v1/v2 Functional Tests - 5602659835.3 19 Jul 2023 06:22PM UTC 0
53.3
GitHub Action Run
4 Cgroup v2 Functional Tests - hybrid - 5602659835.4 19 Jul 2023 06:26PM UTC 0
52.25
GitHub Action Run
5 Cgroup v2 Functional Tests - legacy - 5602659835.5 19 Jul 2023 06:26PM UTC 0
51.34
GitHub Action Run
6 Unit Tests - 5602659835.6 19 Jul 2023 06:17PM UTC 0
11.11
GitHub Action Run
Source Files on build 5602659835
Detailed source file information is not available for this build.
  • Back to Repo
  • de5127c3 on github
  • Prev Build on main (#5602373841)
  • Next Build on main (#5602984802)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc