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 22de9a09d9973e63b151794c5ddccd8d34ed4ef9

Fix missing `chmod 700` on user-specific abs trash
This concerns a user-specific directory (the one having `%u` in its
specification) specified via an absolute path. Those are created
immediately on setting 'trashdir'. Trash directories containing `%r`
are created on demand and they do get their permissions set correctly.
Author: xaizek
Author date (UTC): 2025-05-05 14:04
Committer name: xaizek
Committer date (UTC): 2025-05-06 12:14
Parent(s): 41e1a88c44012ed97887e9e5fc0b453b8aaf9276
Signing key: 99DC5E4DB05F6BE2
Tree: 07756092ea890af49bc3e6670e78b6b3d495bbf5
File Lines added Lines deleted
ChangeLog 3 0
src/trash.c 1 1
File ChangeLog changed (mode: 100644) (index 03b5a22b1..47e03f686)
3 3 Fixed build issue with musl due to use of non-standard LONG_LONG_MAX. Fixed build issue with musl due to use of non-standard LONG_LONG_MAX.
4 4 Thanks to NRK. Thanks to NRK.
5 5
6 Fixed user-specific trash directory (absolute path, `%u` and no `%r`)
7 created on setting 'trashdir' not having reduced set of permissions.
8
6 9 0.14 to 0.14.1 (2025-05-02) 0.14 to 0.14.1 (2025-05-02)
7 10
8 11 Made documentation on which :commands can have comments a bit more Made documentation on which :commands can have comments a bit more
File src/trash.c changed (mode: 100644) (index b5a32f066..d5016db29)
... ... create_trash_dir(const char trash_dir[], int user_specific)
220 220 { {
221 221 LOG_FUNC_ENTER; LOG_FUNC_ENTER;
222 222
223 if(try_create_trash_dir(trash_dir, 0) != 0)
223 if(try_create_trash_dir(trash_dir, user_specific) != 0)
224 224 { {
225 225 show_error_msgf("Error Setting Trash Directory", show_error_msgf("Error Setting Trash Directory",
226 226 "Could not set trash directory to %s: %s", trash_dir, strerror(errno)); "Could not set trash directory to %s: %s", trash_dir, strerror(errno));
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