]> err.no Git - systemd/commit
util: rm_rf_children() add root_dev parameter
authorHarald Hoyer <harald@redhat.com>
Wed, 16 May 2012 13:08:27 +0000 (15:08 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 21 May 2012 16:52:49 +0000 (18:52 +0200)
commit597f43c7849dc9fc9aeb806f8d4f9679cabce8e6
treecdd42442fcb98de8fca9695813ee2d217f68197d
parentd966a7b3631a54602297ef3bff1dcaf35cbefd12
util: rm_rf_children() add root_dev parameter

if root_dev is set, remove subdirectories only, if the device is the
same as the root_dev. This prevents to remove files across device
boundaries.
src/shared/util.c
src/shared/util.h