Add |0700 to create(local, OREAD, DMDIR): shall fix non-usable directories created under u9fs. The wstat which follows transfers mode bits from source replica. Alternatively, this could be turned into create(local, OREAD, DMDIR|rd.mode); or fixed in u9fs; or any combination of these. Reference: /n/sources/patch/maybe/applylog-mkdir Date: Wed Feb 27 09:40:34 CET 2013 Signed-off-by: yarikos@gmail.com --- /sys/src/cmd/replica/applylog.c Wed Feb 27 09:40:21 2013 +++ /sys/src/cmd/replica/applylog.c Wed Feb 27 09:40:15 2013 @@ -413,7 +413,7 @@ if(donothing) break; if(rd.mode&DMDIR){ - fd = create(local, OREAD, DMDIR); + fd = create(local, OREAD, DMDIR|0700); if(fd < 0 && isdir(local)) fd = open(local, OREAD); if(fd < 0){