[cgmanager-devel] [cgmanager/cgmanager] 462a1f: fix regression introduced by recent switch to nih_...

GitHub noreply at github.com
Mon Sep 8 22:54:55 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/cgmanager/cgmanager
  Commit: 462a1f26b332246d6dad8a606d145739f177e58e
      https://github.com/cgmanager/cgmanager/commit/462a1f26b332246d6dad8a606d145739f177e58e
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2014-09-08 (Mon, 08 Sep 2014)

  Changed paths:
    M cgmanager.c

  Log Message:
  -----------
  fix regression introduced by recent switch to nih_locals

1. do_collect_tasks was still doing strncat(path, x, MAXPATHLEN-1)
   but path was not pre-allocated to MAXPATHLEN
2. collect_tasks needs to pass a nih_alloc'ed path just as do_collect_tasks
   does
3. pass pointer to the nih_alloc'd path so we can append to it.

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>




More information about the cgmanager-devel mailing list