mirror of
https://github.com/MidnightCommander/mc
synced 2025-02-25 03:34:21 +03:00

Directory comparision expects only file names in both panels. In panelized panel, files named can contain paths: | boxes.c | 43220|| 1/boxes.c | 43220| | boxes.h | 1429 || 1/boxes.h | 1429| | | || boxes.c | 43220| | | || boxes.h | 1429| Even if boxes.c and 1/boxes.c files are the same, they are marked as different because strings "boxes.c" and "1/boxes.c" are different. The solution: for panelized panel, ignore path and use file name only (like output of basename(3)) for comparision. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>