Merge parser fix from vendor branch (rev 1.1.1.16)

This commit is contained in:
Dag-Erling Smørgrav 2004-05-19 06:21:56 +00:00
parent e6bd8ae1e9
commit ab203c2d8c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129420

View File

@ -1645,7 +1645,7 @@ serve_unchanged (arg)
&& strncmp (arg, name, cp - name) == 0)
{
timefield = strchr (cp + 1, '/') + 1;
if (*timefield != '=')
if (*timefield == '/')
{
cp = timefield + strlen (timefield);
cp[1] = '\0';
@ -1689,7 +1689,7 @@ serve_is_modified (arg)
&& strncmp (arg, name, cp - name) == 0)
{
timefield = strchr (cp + 1, '/') + 1;
if (!(timefield[0] == 'M' && timefield[1] == '/'))
if (*timefield == '/')
{
cp = timefield + strlen (timefield);
cp[1] = '\0';