Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55780 - Nano 1.3.2 disregards umask
Summary: Nano 1.3.2 disregards umask
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-01 05:25 UTC by Toni Suokas
Modified: 2004-07-06 18:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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