nwconn: search files only for AFP file rename
All checks were successful
Source release / source-package (push) Successful in 48s
All checks were successful
Source release / source-package (push) Successful in 48s
This commit is contained in:
10
src/nwconn.c
10
src/nwconn.c
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user