If the last line of the file has no '\n', apr_file_gets() returns the data but with rc APR_EOF.

Thus the familiar

  while (apr_file_gets() == APR_SUCCESS) {
    chomp the possible newline
    process the data
  }

ideom is broken.

I guess this is wonderful and I will get to update/test various paths in mod_cgi[d] that aren't so smart about the harsh reality :)



Reply via email to