nwconn: search files only for AFP file rename
All checks were successful
Source release / source-package (push) Successful in 48s

This commit is contained in:
a
2026-05-30 20:18:48 +00:00
committed by Mario Fetka
parent 8360edfff7
commit bcacd6142d

View File

@@ -1313,7 +1313,15 @@ static int afp_rename_object(uint8 *afp_req, int afp_len,
result = nw_mv_dir_between_handles(0, source_path, strlen((char *)source_path),
0, dest_path, strlen((char *)dest_path));
} else {
result = nw_mv_files(0x37,
/*
* File search attributes must not include the directory bit (0x10).
* The first AFP rename smoke showed nw_mv_files() returning -0xff for
* a normal file when the source search mask was 0x37, because the
* NetWare file search path filtered regular files out whenever 0x10 was
* present. Keep hidden/system/archive matching enabled, but search for
* files only.
*/
result = nw_mv_files(0x27,
0, source_path, strlen((char *)source_path),
0, dest_path, strlen((char *)dest_path));
}