From 17efea3ec0f30f09c5f911ad979a557b22b21267 Mon Sep 17 00:00:00 2001 From: curt Date: Wed, 28 Aug 2002 17:53:52 +0000 Subject: [PATCH] Ignore files that have -set.xml in them, but don't end in that exact string (i.e. something-set.xml~) --- src/Main/options.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Main/options.cxx b/src/Main/options.cxx index 8fc107c37..852426cbe 100644 --- a/src/Main/options.cxx +++ b/src/Main/options.cxx @@ -1273,7 +1273,7 @@ void fgShowAircraft(void) { while ((dire = ulReadDir(dirp)) != NULL) { char *ptr; - if ((ptr = strstr(dire->d_name, "-set.xml")) ) { + if ((ptr = strstr(dire->d_name, "-set.xml")) && ptr[8] == '\0' ) { SGPath afile = path; afile.append(dire->d_name); -- 2.39.5