Skip to content

Commit

Permalink
fix(mound-modules): read
Browse files Browse the repository at this point in the history
  • Loading branch information
zkochan committed May 17, 2023
1 parent ea28b6f commit cdcb5d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules-mounter/daemon/src/createFuseHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function createFuseHandlersFromLockfile (lockfile: Lockfile, cafsDir: str
})
},
read (p: string, fd: number, buffer: Buffer, length: number, position: number, cb: (readBytes: number) => void) {
fs.read(fd, buffer, position, length, position, (err, bytesRead) => {
fs.read(fd, buffer, 0, length, position, (err, bytesRead) => {
if (err != null) {
// eslint-disable-next-line n/no-callback-literal
cb(-1)
Expand Down

0 comments on commit cdcb5d3

Please sign in to comment.