Skip to content

Commit

Permalink
stat new file in create return
Browse files Browse the repository at this point in the history
fix #108
  • Loading branch information
willscott committed Dec 25, 2023
1 parent 4e20ea0 commit c378a0c
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 c378a0c

Please sign in to comment.