Bug Fix - Att::match

- Fixed bug in Att::match that causes blank dates to be interpreted
  as 12/31/1969, and therefore pass "xxx.before:" tests.
- Added the "cal" symlink trick to ChangeLog.
- Removed incorrect i18n tags from Config.cpp.
- Allowed .taskrc:confirmation=no to bypass Permission checking.
This commit is contained in:
Paul Beckingham 2009-06-27 16:00:41 -04:00
parent 7e0a1759f9
commit facb4dcb41
4 changed files with 45 additions and 37 deletions

View file

@ -560,7 +560,7 @@ bool Att::match (const Att& other) const
{
Date literal ((time_t)::atoi (mValue.c_str ()));
Date variable ((time_t)::atoi (other.mValue.c_str ()));
if (! (variable < literal))
if (other.mValue == "" || ! (variable < literal))
return false;
}
else if (which == "number")