jarun / nnn

n³ The unorthodox terminal file manager
BSD 2-Clause "Simplified" License
18.51k stars 743 forks source link

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

Closed cor closed 3 months ago

cor commented 3 months ago

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

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
N-R-K commented 3 months ago

This is intentional, I think: https://github.com/jarun/nnn/issues/1654

cor commented 3 months ago

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.

jarun commented 3 months ago

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

cor commented 3 months ago

Please use your local patch.

What do you mean by this?

KlzXS commented 3 months ago

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