cvs commit: src/sys/kern uipc_syscalls.c

Pawel Jakub Dawidek pjd at
Thu Apr 19 05:54:46 UTC 2007

pjd         2007-04-19 05:54:45 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             uipc_syscalls.c 
  Fix a bug in sendfile(2) when files larger than page size and nbytes=0.
  When nbytes=0, sendfile(2) should use file size. Because of the bug, it
  was sending half of a file. The bug is that 'off' variable can't be used
  for size calculation, because it changes inside the loop, so we should
  use uap->offset instead.
  Revision  Changes    Path
  1.252     +2 -2      src/sys/kern/uipc_syscalls.c

More information about the cvs-src mailing list