From: Christian Göttsche <cgzones@xxxxxxxxxxxxxx> remove(3) just calls unlink(2) for non directories. Signed-off-by: Christian Göttsche <cgzones@xxxxxxxxxxxxxx> --- libsemanage/src/semanage_store.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsemanage/src/semanage_store.c b/libsemanage/src/semanage_store.c index 7c9f5b2a..29bde24a 100644 --- a/libsemanage/src/semanage_store.c +++ b/libsemanage/src/semanage_store.c @@ -880,7 +880,7 @@ int semanage_remove_directory(const char *path) return retval; } } else { - if (remove(s) == -1) { + if (unlink(s) == -1) { return -3; } } -- 2.45.2