File src/fops_common.c changed (mode: 100644) (index 2a93ed300..95b6218c7) |
... |
... |
fops_can_read_selected_files(view_t *view) |
687 |
687 |
entry = NULL; |
entry = NULL; |
688 |
688 |
while(iter_selected_entries(view, &entry)) |
while(iter_selected_entries(view, &entry)) |
689 |
689 |
{ |
{ |
690 |
|
char full_path[PATH_MAX]; |
|
691 |
|
|
|
|
690 |
|
char full_path[PATH_MAX + 1]; |
692 |
691 |
get_full_path_of(entry, sizeof(full_path), full_path); |
get_full_path_of(entry, sizeof(full_path), full_path); |
693 |
|
if(os_access(full_path, R_OK) == 0) |
|
|
692 |
|
|
|
693 |
|
/* We can copy links even when they are broken, so it's OK to don't check |
|
694 |
|
* them (otherwise access() fails for broken links). */ |
|
695 |
|
if(entry->type == FT_LINK || os_access(full_path, R_OK) == 0) |
694 |
696 |
{ |
{ |
695 |
697 |
continue; |
continue; |
696 |
698 |
} |
} |