]> err.no Git - util-linux/commit
switch_root: use file descriptor instead of path for recursiveRemove()
authorPeter Jones <pjones@redhat.com>
Fri, 19 Jun 2009 19:21:58 +0000 (15:21 -0400)
committerKarel Zak <kzak@redhat.com>
Mon, 22 Jun 2009 19:38:12 +0000 (21:38 +0200)
commit82476a9080f1ce8d1d8701f1b2c879c1e5b7523c
tree1eb9a4ee4936b8aa11bc20808e62acd7eee6ed31
parentb39bd02572a8dc3dd86b3a6e535b5051e3f20273
switch_root: use file descriptor instead of path for recursiveRemove()

This makes recursiveRemove() use fdopendir() instead of taking a path,
so we're always sure about which namespace we're starting from.

Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/switch_root.c