Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 55780

Summary: Nano 1.3.2 disregards umask
Product: Gentoo Linux Reporter: Toni Suokas <toni>
Component: Current packagesAssignee: SpanKY <vapier>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Toni Suokas 2004-07-01 05:25:55 UTC
When creating files with Nano 1.3.2 , all files get the permission of 600 instead of the umask, which is set to 0022 (thus the files should be 644). Touching files (touch foo) produces correct permission based on umask

Reproducible: Always
Steps to Reproduce:
1. start editing new file with nano
2. save the file
3. 

Actual Results:  
the file permissions were incorrect 

Expected Results:  
the file permissions should have been those defined by umask
Comment 1 SpanKY gentoo-dev 2004-07-01 19:45:16 UTC
what about nano-1.3.3 ?
Comment 2 Toni Suokas 2004-07-02 00:13:36 UTC
1.3.3 does the same. Just reverted back to 1.2.4, wich saves the files with correct permissions. Haven't tried the other 1.3 releases, to see if this is a common bug in 1.3.
Comment 3 SpanKY gentoo-dev 2004-07-05 08:01:02 UTC
forwarded to upstream
Comment 4 SpanKY gentoo-dev 2004-07-06 18:44:40 UTC
ok, David Lawrence Ramsey put together a small patch which you can find in 1.3.2-r1 and 1.3.3-r1