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 ecf6f227d9468ded933796e141a158df3e30f0dd

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-05 20:48
Parent(s): 4319c72e2ecd841539b2498f5277472331f91fac
Signing key: 99DC5E4DB05F6BE2
Tree: 07e15bf94d96c522cfabdcb1ed833acecdd8f48d
File Lines added Lines deleted
ChangeLog 3 0
src/trash.c 1 1
File ChangeLog changed (mode: 100644) (index 94740cf55..ad428c9be)
76 76 Fixed :clone producing weird results on trying to increment numbers Fixed :clone producing weird results on trying to increment numbers
77 77 greater than `2**31 - 1`. Thanks to CaptainFantastic. greater than `2**31 - 1`. Thanks to CaptainFantastic.
78 78
79 Fixed user-specific trash directory (absolute path, `%u` and no `%r`)
80 created on setting 'trashdir' not having reduced set of permissions.
81
79 82 0.14-beta to 0.14 (2025-02-08) 0.14-beta to 0.14 (2025-02-08)
80 83
81 84 Improved documentation on zh/zl menu keys a bit. Improved documentation on zh/zl menu keys a bit.
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