2024-08-07 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in rdimport(1) that caused filename corruption when
	processing input filenames containing the '[' character.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2024-08-07 13:31:43 -04:00
parent b88e7fee18
commit 8764edaf5f
2 changed files with 4 additions and 1 deletions

View File

@ -24830,3 +24830,6 @@
in the middle of a segue. in the middle of a segue.
2024-07-10 Fred Gleason <fredg@paravelsystems.com> 2024-07-10 Fred Gleason <fredg@paravelsystems.com>
* Incremented the package version to 4.3.0int1. * Incremented the package version to 4.3.0int1.
2024-08-07 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rdimport(1) that caused filename corruption when
processing input filenames containing the '[' character.

View File

@ -1059,7 +1059,7 @@ void MainObject::ProcessFileEntry(const QString &entry)
} }
globbuf.gl_offs=RDIMPORT_GLOB_SIZE; globbuf.gl_offs=RDIMPORT_GLOB_SIZE;
while((globbuf.gl_pathc==RDIMPORT_GLOB_SIZE)||(gflags==GLOB_MARK)) { while((globbuf.gl_pathc==RDIMPORT_GLOB_SIZE)||(gflags==GLOB_MARK)) {
glob(RDEscapeString(entry).toUtf8(),gflags,NULL,&globbuf); glob(entry.toUtf8(),gflags,NULL,&globbuf);
if((globbuf.gl_pathc==0)&&(gflags==GLOB_MARK)&&(!import_drop_box)) { if((globbuf.gl_pathc==0)&&(gflags==GLOB_MARK)&&(!import_drop_box)) {
Log(LOG_WARNING,QString::asprintf(" Unable to open \"%s\", skipping...\n", Log(LOG_WARNING,QString::asprintf(" Unable to open \"%s\", skipping...\n",
entry.toUtf8().constData())); entry.toUtf8().constData()));