Skip to content

Commit

Permalink
Merge pull request #112 from willscott/fix/create-stat-wcc
Browse files Browse the repository at this point in the history
stat new file in create return
  • Loading branch information
willscott authored Dec 26, 2023
2 parents 4e20ea0 + c378a0c commit d4608ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nfs_oncreate.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func onCreate(ctx context.Context, w *response, userHandle Handler) error {
if err := xdr.Write(writer, fp); err != nil {
return &NFSStatusError{NFSStatusServerFault, err}
}
if err := WritePostOpAttrs(writer, tryStat(fs, append(path, file.Name()))); err != nil {
if err := WritePostOpAttrs(writer, tryStat(fs, []string{file.Name()})); err != nil {
return &NFSStatusError{NFSStatusServerFault, err}
}

Expand Down

0 comments on commit d4608ef

Please sign in to comment.