9p: reject mkdir (Tcreate with DMDIR) on flat directories

This commit is contained in:
Levi Neely 2026-04-13 13:17:32 +02:00
parent 9a0aaa67bc
commit 99e001f326
1 changed files with 3 additions and 0 deletions

View File

@ -354,6 +354,9 @@ func (s *Server) create(cs *connState, fc *plan9.Fcall) *plan9.Fcall {
if f.path != "/p" && f.path != "/pl" && f.path != "/sk" && f.path != "/t" {
return errFcall(fc, "create not supported")
}
if fc.Perm&plan9.DMDIR != 0 {
return errFcall(fc, "mkdir not supported")
}
newPath := pathJoin(f.path, fc.Name)