UndeadKernel / pacfiles-mode

Emacs major mode to manage pacnew and pacsave files left by the pacman Arch tool
MIT License
42 stars 2 forks source link

Use secure file permissions for merge files #3

Closed juergenhoetzel closed 5 years ago

juergenhoetzel commented 5 years ago

Prevents world-readable (Emacs default: #755) merge files for sensitive config files (like /etc/shadow).

Without this commit:

-rw-r--r-- 1 juergen juergen     9 28. Okt 15:25  d19ca71d34.pacmerge

Using this commit:

-rw------- 1 juergen juergen     9 28. Okt 15:37  d19ca71d34.pacmerge
UndeadKernel commented 5 years ago

It's a good idea to prevent others from reading potentially sensitive data. The change makes sense.