server: remove restrictive create guard, allow creates in all directories
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
da3412bb13
commit
64dd815388
|
|
@ -447,9 +447,6 @@ func (s *Server) create(cs *connState, fc *plan9.Fcall) *plan9.Fcall {
|
|||
if !ok {
|
||||
return errFcall(fc, "bad fid")
|
||||
}
|
||||
if f.path != "/a" && 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")
|
||||
}
|
||||
|
|
|
|||
Reference in New Issue