]> arthur.barton.de Git - netatalk.git/commit
Fix dsi->in_write flag/counter
authorFrank Lahm <franklahm@googlemail.com>
Wed, 30 May 2012 10:53:55 +0000 (12:53 +0200)
committerFrank Lahm <franklahm@googlemail.com>
Wed, 30 May 2012 10:53:55 +0000 (12:53 +0200)
commit6c6dab72d34073d8dc5e25c1190fd5c5225c7940
tree6b1c5bc189014d6caa6411dbd437b1a57fcd7bce
parentb4c7dd2495386379d82fab528acfbe9cee58f5ff
Fix dsi->in_write flag/counter

The new/tuned sendfile using code resulted in in_write being
decremented to -1 because dsi_readdone was called (which
decremnts it by 1) althoug it wasn't incremented before. The fix
is to not call dsi_readdone() at all in the sendfile case as
we didn't call the counterpart dsi_readinit() beforehand.
etc/afpd/fork.c