mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
upas/fs: don't try to fstat a renamed fd
cwfs apparently can get unhappy about it.
This commit is contained in:
parent
7cd0b81c83
commit
05d0456a30
1 changed files with 2 additions and 1 deletions
|
@ -271,7 +271,8 @@ wridxfile(Mailbox *mb)
|
|||
if(dirfwstat(fd, &n) == -1)
|
||||
sysfatal("dirfwstat: %r");
|
||||
|
||||
d = dirfstat(fd);
|
||||
snprint(buf, sizeof buf, "%s.idx", mb->path);
|
||||
d = dirstat(buf);
|
||||
if(d == nil)
|
||||
sysfatal("dirfstat: %r");
|
||||
mb->qid = d->qid;
|
||||
|
|
Loading…
Reference in a new issue