diff options
Diffstat (limited to 'lib/system/system.c')
-rw-r--r-- | lib/system/system.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/system/system.c b/lib/system/system.c index c9fe979..0253ac8 100644 --- a/lib/system/system.c +++ b/lib/system/system.c @@ -91,12 +91,12 @@ int pb_rmdir_recursive(const char *base, const char *dir) cur = talloc_strdup(NULL, dir); - while (strcmp(base, dir)) { + while (strcmp(base, cur)) { - rmdir(dir); + rmdir(cur); /* null-terminate at the last slash */ - pos = strrchr(dir, '/'); + pos = strrchr(cur, '/'); if (!pos) break; |