Bug 109803 - timeconfig influenced by umask
Summary: timeconfig influenced by umask
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: redhat-config-date
Version: 1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Brent Fox
QA Contact:
URL:
Whiteboard:
: 109356 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-11-11 22:48 UTC by Ulrich Drepper
Modified: 2007-11-30 22:10 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-01-08 21:47:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Explicitly call chmod() (1.08 KB, patch)
2003-11-11 22:50 UTC, Ulrich Drepper
no flags Details | Diff

Description Ulrich Drepper 2003-11-11 22:48:53 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b)
Gecko/20031110 Firebird/0.7+

Description of problem:
When generating the /etc/localtime output file timeconfig is
influenced by the umask used.  This is bad if it prevents reading by
group or other.

Version-Release number of selected component (if applicable):
redhat-config-date-1.5.25-1

How reproducible:
Always

Steps to Reproduce:
1.su
2.umask 077
3.run timeconfig
    

Actual Results:  /etc/localtime has more 0600.

Expected Results:  Show have mode 0644.

Additional info:

Comment 1 Ulrich Drepper 2003-11-11 22:50:00 UTC
Created attachment 95916 [details]
Explicitly call chmod()

The obviously correct way it to call chmod() explicitly.  The attached patch is
tested but given my python expperience this doesn't mean much.

Comment 2 Brent Fox 2004-01-08 21:47:47 UTC
Patch looks fine to me.  Applied and committed.  Should appear in
system-config-date-1.7.1-1.  Thanks for the patch.

Comment 3 Brent Fox 2004-01-12 22:07:49 UTC
*** Bug 109356 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.