FIter->NextGlob=0;
}
Path=FileListIter_NextWithMask(FIter);
- if (Path!=NULL)
+ if (Path!=NULL && (Path[0]!='-' || Path[1]!='\0'))
{
int ErrCode=glob(Path,GLOB_ERR | GLOB_NOSORT,NULL,&FIter->Glob);
if (ErrCode!=0)
case GLOB_NOMATCH:
debuga(__FILE__,__LINE__,_("No files matching \"%s\"\n"),Path);
break;
+ default:
+ debuga(__FILE__,__LINE__,_("Failed to glob file pattern \"%s\" with unspecified error code %d"),Path,ErrCode);
+ break;
}
exit(EXIT_FAILURE);
}