]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
The final line of the config file was not being read if there was
authorRyan Bloom <rbb@apache.org>
Wed, 18 Oct 2000 15:58:29 +0000 (15:58 +0000)
committerRyan Bloom <rbb@apache.org>
Wed, 18 Oct 2000 15:58:29 +0000 (15:58 +0000)
commit8c119a370aa07507e9f66f92799afdabe78255f1
tree76464e6b480de4ee380c010b2663096b0ebfda78
parent948333188780ce7fc46d313701846379785eaf2a
The final line of the config file was not being read if there was
no \n at the end of it.  This was caused by apr_fgets returning
APR_EOF even though we had read valid data.  This is solved by
making cfg_getline check the buff that was returned from apr_fgets.
If apr_fgets return APR_EOF, but there was data in the buf, then we
return the buf, otherwise we return NULL.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86643 13f79535-47bb-0310-9956-ffa450edef68
server/util.c