This commit is contained in:
Your Name 2023-10-28 10:11:00 +03:00
parent bd4024cf4d
commit 4dc1a5d86c

View File

@ -65,7 +65,7 @@ int cntree(const char *dst) {
if (get_stat(dst, &stat_path)) if (get_stat(dst, &stat_path))
return 1; return 1;
if (!S_ISDIR(stat_path.st_mode) || r_flag) if (!S_ISDIR(stat_path.st_mode) || !r_flag)
return ret; return ret;
DIR *dir = opendir(dst); DIR *dir = opendir(dst);