dos mangle v8 debug
All checks were successful
Source release / source-package (push) Successful in 47s

This commit is contained in:
Mario Fetka
2026-05-20 17:05:08 +02:00
parent 9450827125
commit ac84266539
2 changed files with 13 additions and 0 deletions

View File

@@ -696,6 +696,8 @@ static int get_dir_entry(NW_PATH *nwpath,
*kpath = '\0';
build_dos_83_alias(soptions, (uint8*)xkpath, name,
dirbuff->d_ino, dosalias, sizeof(dosalias));
XDPRINTF((1,0,"DOSSCAN get_dir_entry parent='%s' real='%s' alias='%s' entry='%s'",
xkpath, name, dosalias, entry));
okflag = ((name[0] != '.' &&
( (!strcmp((char*)dosalias, (char*)entry))
|| fn_dos_match(dosalias, entry, soptions)))) ? 0 : -0xff;
@@ -801,6 +803,8 @@ static int get_dh_entry(DIR_HANDLE *dh,
unix2doscharset(dname);
build_dos_83_alias(dh->vol_options, (uint8*)dh->unixname, name,
dirbuff->d_ino, dosalias, sizeof(dosalias));
XDPRINTF((1,0,"DOSSCAN get_dh_entry parent='%s' real='%s' alias='%s' entry='%s'",
dh->unixname, name, dosalias, entry));
okflag = (name[0] != '.' &&
( (!strcmp((char*)dosalias, (char*)entry))
|| fn_dos_match(dosalias, entry, dh->vol_options)));
@@ -1228,6 +1232,8 @@ static int get_dir_attrib(NW_DIR_INFO *d, char *unixname, struct stat *stb,
XDPRINTF((5,0, "get_dir_attrib of %s", conn_get_nwpath_name(nwpath)));
build_dos_attr_name(nwpath->volume, nwpath->fn, unixname, stb,
spath, sizeof(spath));
XDPRINTF((1,0,"DOSATTR DIR path='%s' unix='%s' out='%s'",
nwpath->fn, unixname ? unixname : "", spath));
memset(d->name, 0, sizeof(d->name));
strncpy((char*)d->name, (char*)spath, sizeof(d->name)-1);

View File

@@ -203,6 +203,13 @@ int build_dos_83_alias(int options, uint8 *parent_unix,
}
up_fn(alias);
XDPRINTF((1, 0,
"DOSALIAS parent='%s' real='%s' raw='%s' collisions=%d alias='%s'",
(parent_unix && *parent_unix) ? (char*)parent_unix : "",
real_name ? (char*)real_name : "",
raw,
collisions,
alias));
return(strlen((char*)alias));
}