Revert "next dos83 fixes namespace.c"
All checks were successful
Source release / source-package (push) Successful in 2m6s

This reverts commit c567f75fdb.
This commit is contained in:
Mario Fetka
2026-05-20 08:27:37 +02:00
parent c567f75fdb
commit 2eab5f71c7

View File

@@ -1518,37 +1518,7 @@ static int search_match(struct dirent *dirbuff,
XDPRINTF((8,0,"search_match, Name='%s' dname='%s'", name, dname));
if (!inode_search) {
if (namespace == NAME_DOS) {
uint8 dosname[DOS83_NAME_MAX + 1];
char saved_dir[1024];
char *slash;
if (*name == '.') {
flag = 0;
} else {
/*
* ds->unixname currently points to the full directory path used
* during scanning. Convert it to the containing directory string
* expected by namedos.c.
*/
strncpy(saved_dir, (char *)ds->unixname, sizeof(saved_dir) - 1);
saved_dir[sizeof(saved_dir) - 1] = '\0';
slash = strrchr(saved_dir, '/');
if (slash)
*slash = '\0';
else
strcpy(saved_dir, ".");
flag = dos83_match_name_in_dir(saved_dir,
name,
entry,
vol_options,
dosname,
sizeof(dosname));
if (flag)
strmaxcpy(dname, (char *)dosname, size_dname - 1);
}
flag = (*name != '.' && fn_dos_match_old(dname, entry, vol_options));
} else if (namespace == NAME_OS2) {
flag = (*name != '.' || (*(name+1) != '.' && *(name+1) != '\0' ))
&& fn_os2_match(dname, entry, vol_options);