summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorJakob Unterwurzacher2018-01-25 21:40:48 +0100
committerJakob Unterwurzacher2018-01-25 21:42:15 +0100
commitb3185723129725b1b5557912eb323e55033d8f67 (patch)
treef00c88b2f9373e46e47d9be995a9034c16f54283 /internal
parent163964b09011424cb461d418993d5a2aabd928ba (diff)
syscallcompat: fix reversed warning output
We used to print somewhat strange messages: Getdents: corrupt entry #1: Reclen=276 > 280. Returning EBADR Reported at https://github.com/rfjakob/gocryptfs/issues/197
Diffstat (limited to 'internal')
-rw-r--r--internal/syscallcompat/getdents_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/syscallcompat/getdents_linux.go b/internal/syscallcompat/getdents_linux.go
index 1b3569b..aaa69ac 100644
--- a/internal/syscallcompat/getdents_linux.go
+++ b/internal/syscallcompat/getdents_linux.go
@@ -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)