From: leslie Date: Sun, 4 Sep 2011 03:29:50 +0000 (+0800) Subject: add tecfreak's overide cable/terr source patch X-Git-Tag: upstream/620~35 X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=31d9bc47597dc8308c00ca7f2d39a82aef6771a1;p=sasc-ng.git add tecfreak's overide cable/terr source patch --- diff --git a/override.c b/override.c index 1b2b27b..3cbb21f 100644 --- a/override.c +++ b/override.c @@ -134,7 +134,9 @@ bool cValidityRange::ParseSourceRange(const char *str) if((l=sscanf(str,"%a[^-:]-%a[^-:]",&s1,&s2))>=1) { if(s1 && (fromSource=cSource::FromString(s1))>0 && (l<2 || (s2 && (toSource=cSource::FromString(s2))>0))) { - if(cSource::IsSat(fromSource) && (toSource<0 || (cSource::IsSat(toSource) && toSource>fromSource))) { + if((cSource::IsSat(fromSource) && (toSource<0 || (cSource::IsSat(toSource) && toSource>fromSource))) || + (cSource::IsCable(fromSource) && toSource<0) || + (cSource::IsTerr(fromSource) && toSource<0)) { res=true; } else PRINTF(L_CORE_LOAD,"override: SOURCE range error");