commit ff6f19b17c7e1d33ec438ee331f1aa3080903acd from: Omar Polo date: Wed Feb 02 09:51:26 2022 UTC don't expose the "." ad ".." directory entries commit - 73df5ca20482f34c0746b61d2c9fd6e43f3477f8 commit + ff6f19b17c7e1d33ec438ee331f1aa3080903acd blob - 53e0d9dc7c97151a2eec45250b78573395e8e9df blob + 8b7e6b2853ae287fe51e08e0c1ac961350ab6458 --- kamid/client.c +++ kamid/client.c @@ -1521,6 +1521,8 @@ tread(struct np_msg_header *hdr, const uint8_t *data, if ((d = readdir(f->d)) == NULL) break; + if (!strcmp(d->d_name, ".") || !strcmp(d->d_name, "..")) + continue; if (fstatat(f->fd, d->d_name, &sb, 0) == -1) { warn("fstatat"); continue;