Allow opening directories non-recursively

This commit is contained in:
Paride Legovini
2016-09-28 18:59:15 +02:00
committed by Bert Münnich
parent d69f39e3aa
commit 86dc6860f9
5 changed files with 8 additions and 10 deletions

View File

@ -123,7 +123,7 @@ void tns_clean_cache(tns_t *tns)
char *cfile, *filename, *tpos;
r_dir_t dir;
if (r_opendir(&dir, cache_dir) < 0) {
if (r_opendir(&dir, cache_dir, true) < 0) {
error(0, errno, "%s", cache_dir);
return;
}