]> arthur.barton.de Git - netatalk.git/commit
Remove size check that required a costly fstat()
authorRalph Boehme <sloowfranklin@gmail.com>
Thu, 18 Apr 2013 08:58:44 +0000 (10:58 +0200)
committerRalph Boehme <sloowfranklin@gmail.com>
Thu, 18 Apr 2013 08:58:44 +0000 (10:58 +0200)
commit2d4c0bd1e9b0ad0db32e4f3705fe67f657f57230
treef7331d20b8a2495922889fe3c82e910c34b57dd1
parentbeb1094f077290f1716b79a6e89d97bcab791c3a
Remove size check that required a costly fstat()

In case the client request count plus offset is large then the file,
we're supposed to send the available data and set AFP error to
AFPERR_EOF.
No need to use an extra fstat() for that, we can also simply check
the whether the amount of data read from the file matches the
requested amount.

From FR #78.
etc/afpd/fork.c