xaizek / vifm (License: GPLv2+) (since 2018-12-07)
Vifm is a file manager with curses interface, which provides Vi[m]-like environment for managing objects within file systems, extended with some useful ideas from mutt.
Commit c5f3821f5c99956f4c9edcbaa7a42e5016991fcb

Fix :clone and :copy not copying broken symlinks
Even though C and p keys copy them.
Author: xaizek
Author date (UTC): 2018-01-28 15:06
Committer name: xaizek
Committer date (UTC): 2018-01-28 15:07
Parent(s): 1b9abcd9fddef5e69b962e6f8744675120b80969
Signing key: 99DC5E4DB05F6BE2
Tree: 57bd141e4814d11f03d2371b632401cd6843e71b
File Lines added Lines deleted
ChangeLog 5 0
src/fops_common.c 5 3
File ChangeLog changed (mode: 100644) (index 4aff0ebf4..49e7e7af1)
1 0.9.1-beta to current
2
3 Fixed :clone and :copy refusing to copy broken symbolic links, even though C
4 and p keys copy them.
5
1 6 0.9 to 0.9.1-beta 0.9 to 0.9.1-beta
2 7
3 8 Added "inode" sorting key, which sorts entries by inode number. Thanks to Added "inode" sorting key, which sorts entries by inode number. Thanks to
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 } }
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/vifm

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/vifm

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master