diff --git a/coreutils/chown.c b/coreutils/chown.c index c19b0bd..07cc37f 100644 --- a/coreutils/chown.c +++ b/coreutils/chown.c @@ -65,7 +65,7 @@ int cntree(const char *dst) { if (get_stat(dst, &stat_path)) return 1; - if (!S_ISDIR(stat_path.st_mode) || r_flag) + if (!S_ISDIR(stat_path.st_mode) || !r_flag) return ret; DIR *dir = opendir(dst);