[cgmanager-devel] [lxc/cgmanager] 55c818: make sure to remove cgm release agent symlinks

0 views
Skip to first unread message

GitHub

unread,
Oct 13, 2015, 3:31:57 PM10/13/15
to cgmanag...@lists.linuxcontainers.org
Branch: refs/heads/master
Home: https://github.com/lxc/cgmanager
Commit: 55c818b6628a5f5765eeffde92a920a15acc959f
https://github.com/lxc/cgmanager/commit/55c818b6628a5f5765eeffde92a920a15acc959f
Author: Serge Hallyn <serge....@ubuntu.com>
Date: 2015-10-13 (Tue, 13 Oct 2015)

Changed paths:
M fs.c

Log Message:
-----------
make sure to remove cgm release agent symlinks

When we mov the release agent location, our file_exists() check
may return false even though the link exists; then our next
symlink() will fail because the link exists. So unconditionally
try to remove the link before creating it.

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


Reply all
Reply to author
Forward
0 new messages