connect: honor ignore-case option for LOGIN path
All checks were successful
Source release / source-package (push) Successful in 49s

Apply the ignore-case volume option when preparing the SYS:LOGIN
directory path during connection setup.

With SYS configured as `itO`, the installed tree may use lowercase
Unix directories such as `login/`, but the connection code still tried
to stat the hard-coded uppercase `LOGIN/` path. This caused new client
connections to abort with:

  Stat error LOGIN Directory, Abort !!: No such file or directory
  UnixPath=`.../SYS/LOGIN/`

Treat `VOL_OPTION_IGNCASE` like `VOL_OPTION_DOWNSHIFT` for this path so
the login directory is resolved as `login/` on ignore-case volumes.
This commit is contained in:
Mario Fetka
2026-05-27 12:07:30 +02:00
parent ad4d492ad6
commit 8ad0f4a144

View File

@@ -2427,7 +2427,7 @@ int nw_init_connect(void)
errorp(1, "No Volumes defined. Look at ini file entry 1, Abort !!", NULL);
return(-1);
}
if (get_volume_options(0) & VOL_OPTION_DOWNSHIFT)
if (get_volume_options(0) & (VOL_OPTION_DOWNSHIFT|VOL_OPTION_IGNCASE))
down_fn(nwlogin.path);
if (stat(build_unix_name(&nwlogin, 0), &stbuff)) {
errorp(1, "Stat error LOGIN Directory, Abort !!",