ref: acdb94c0914d1090468768500f8eb843f05a0128
parent: 6e4c892e30b8d802559c8809fd793fe7d5f6899d
author: kvik <[email protected]>
date: Wed May 15 10:06:36 EDT 2019
return the new file Qid in Rcreate this fixes a file is a directory error that happened when a program used create(2) to create a new file and used the same file descriptor to write(2).
--- a/unionfs.c
+++ b/unionfs.c
@@ -527,8 +527,8 @@
st->file = nf;
r->fid->aux = st;
- r->fid->qid = f->qid;
- o->qid = f->qid;
+ r->fid->qid = nf->qid;
+ o->qid = nf->qid;
respond(r, nil);
}