Skip to content

Commit

Permalink
Read file before accessing it...
Browse files Browse the repository at this point in the history
  • Loading branch information
marcharding committed Jul 13, 2016
1 parent 650caf7 commit f8fd742
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/NFS3Prog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1469,8 +1469,9 @@ nfsstat3 CNFS3Prog::ProcedureCOMMIT(void)
writeverf3 verf;

PrintLog("COMMIT");
path = GetFilePath(file.contents);
Read(&file);
path = GetFilePath(file.contents);

// offset and count are unused
// offset never was anything else than 0 in my tests
// count does not matter in the way COMMIT is implemented here
Expand Down

0 comments on commit f8fd742

Please sign in to comment.