jarun/nnn

Files created with `n`, `f` have incorrect permissions

Closed this issue · 5 comments

cor commented

Environment details (Put x in the checkbox along with the information)

  • Operating System: NixOS
  • Desktop Environment: none
  • Terminal Emulator: Ghostty
  • Shell: Zsh
  • Custom desktop opener (if applicable): none
  • Program options used: none
  • Configuration options set: NNN_TRASH = "1";
  • Plugins are installed
  • Issue exists on nnn master

Exact steps to reproduce the issue

Creating a file with touch yields the following permissions:

48/57 2024-03-19 14:55 -rw-r--r-- 0B .txt

Crating a file by opening nnn, pressing n, f, yields the following permissions:

46/57 2024-03-19 14:56 -rw------- 0B .txt

This is intentional, I think: #1654

cor commented

This is intentional, I think: #1654

If it is, then how do I configure which umask nnn uses when creating files? Can't find an option to configure that in the docs.

Please use your local patch. We can't go back on this one.

cor commented

Please use your local patch.

What do you mean by this?

@cor he means keep maintaining it as a local patch for yourself. We won't be implementing this.