mbox series

[iproute2,0/2] Some fixes to lib/fs.c

Message ID cover.1608315719.git.aclaudi@redhat.com
Headers show
Series Some fixes to lib/fs.c | expand

Message

Andrea Claudi Dec. 18, 2020, 7:09 p.m. UTC
This series contains a couple of fixes and improvements on lib/fs.c
- in functions get_cgroup2_id() and get_cgroup2_path(), fixes cleanup on
  single return point;
- in function make_path(), avoid to call mkdir() two times in a row.

Andrea Claudi (2):
  lib/fs: avoid double call to mkdir on make_path()
  lib/fs: Fix single return points for get_cgroup2_*

 lib/fs.c | 29 ++++++++++++++++++-----------
 1 file changed, 18 insertions(+), 11 deletions(-)