> + dirfd3 = open(path_dir3, O_RDONLY | O_DIRECTORY); > + if (dirfd3 < 0) { > + pr_perror("Can't open %s", path_dir3); > + return 1; > + } > + close(dirfd3); Not sure if we need these hunk if we close dir3 anyway?