Skip to content

Commit

Permalink
syscallcompat: fix reversed warning output
Browse files Browse the repository at this point in the history
We used to print somewhat strange messages:

	Getdents: corrupt entry #1: Reclen=276 > 280. Returning EBADR

Reported at #197
  • Loading branch information
rfjakob committed Jan 25, 2018
1 parent 163964b commit b318572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/syscallcompat/getdents_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func getdents(fd int) ([]fuse.DirEntry, error) {
}
if int(s.Reclen) > sizeofDirent {
tlog.Warn.Printf("Getdents: corrupt entry #%d: Reclen=%d > %d. Returning EBADR",
numEntries, sizeofDirent, s.Reclen)
numEntries, s.Reclen, sizeofDirent)
return nil, syscall.EBADR
}
offset += int(s.Reclen)
Expand Down

0 comments on commit b318572

Please sign in to comment.