commit - 054cd6b98fbb367f781b25084661076f5c1fe4b1
commit + 3242c0bccce6e6d431c59b04e2cd955e732fa074
blob - 86d1c8a51a4c7c63249f0344ed9cc3e51c1597be
blob + 942a9436ab608ca818a0e6788a6d48774c385bbe
--- client.c
+++ client.c
}
if ((fd = openat(oldfd, wnam, O_RDONLY|O_DIRECTORY)) == -1 &&
- errno != ENOTDIR) {
- nwqid--;
+ errno != ENOTDIR)
goto cantopen;
- }
if ((fd == -1 && fstatat(oldfd, wnam, &sb, 0) == -1) ||
- (fd != -1 && fstat(fd, &sb) == -1)) {
- nwqid--;
+ (fd != -1 && fstat(fd, &sb) == -1))
goto cantopen;
- }
qid_update_from_sb(&wqid[nwqid], &sb);