summaryrefslogtreecommitdiff
path: root/lib/dpkg/path-remove.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dpkg/path-remove.c')
-rw-r--r--lib/dpkg/path-remove.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/dpkg/path-remove.c b/lib/dpkg/path-remove.c
index 36375b2..0554975 100644
--- a/lib/dpkg/path-remove.c
+++ b/lib/dpkg/path-remove.c
@@ -50,7 +50,9 @@ secure_unlink_statted(const char *pathname, const struct stat *stab)
return 0;
}
-/*
+/**
+ * Securely unlink a pathname.
+ *
* If the pathname to remove is:
*
* 1. a sticky or set-id file, or
@@ -107,6 +109,11 @@ secure_remove(const char *pathname)
return rc;
}
+/**
+ * Remove a pathname and anything below it.
+ *
+ * This function removes pathname and all its contents recursively.
+ */
void
path_remove_tree(const char *pathname)
{