aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2004-05-19 06:11:44 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2004-05-19 06:11:44 +0000
commitf6fb3b4a3a9ba65a68d6d543cb9b20bae3e55830 (patch)
treed5e48d043e5cfe9583f9dd4149e4d5974545ea88
parente9701b59b170c1134b221d1701471d5e62e80263 (diff)
downloadsrc-f6fb3b4a3a9ba65a68d6d543cb9b20bae3e55830.tar.gz
src-f6fb3b4a3a9ba65a68d6d543cb9b20bae3e55830.zip
Fix a couple of parser bugs.
Notes
Notes: svn path=/vendor/cvs/dist/; revision=129417
-rw-r--r--contrib/cvs/src/server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/cvs/src/server.c b/contrib/cvs/src/server.c
index 8d51fa0e6514..3bffa9d82f7e 100644
--- a/contrib/cvs/src/server.c
+++ b/contrib/cvs/src/server.c
@@ -1638,7 +1638,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';
@@ -1682,7 +1682,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';