[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] nano-1.3.x disregards umask when saving files
From: |
David Lawrence Ramsey |
Subject: |
Re: [Nano-devel] nano-1.3.x disregards umask when saving files |
Date: |
Tue, 6 Jul 2004 16:13:59 +0200 |
User-agent: |
Mutt/1.5.6+20040523i |
--- Mike Frysinger <address@hidden> wrote:
>i kind of noticed this behavior myself when using 1.3 but i didnt
>notice that it only happened when working with nano ;)
>
>http://bugs.gentoo.org/show_bug.cgi?id=55780
>
>seems that when creating files, they always start with 600 instead of
>working off of the umask ...
Fixed in CVS. The problem isn't actually with the umask; it's with the
default permissions as modified by the umask. It seems to have gotten
in when I was merging DB's changes to write_file(), which included a
change to the default file-creation permissions to make them 600 instead
of 666. 600 with a umask of 022 applied is still 600, while 666 with a
umask of 022 applied is the expected 644. The attached patch fixes it
for 1.3.3.
nanopermsfix.patch
Description: Text document