Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 90657 - dictd's initrc script don't take care of umask
Summary: dictd's initrc script don't take care of umask
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Spell checking utilities and dictionaries -- related bugs (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-27 13:56 UTC by Étienne Buira
Modified: 2008-09-12 19:13 UTC (History)
1 user (show)

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


Attachments
dictd-initd-mod (dictd-initd-mod,302 bytes, patch)
2005-04-27 13:58 UTC, Étienne Buira
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Étienne Buira 2005-04-27 13:56:23 UTC
When listing the dictionnaries, a new file is created (with the current umask). As result, when having umask=0077, the file is not readable by dictd.

To get rid of that, I declared DICTDCONF_MOD, which hold the chmod(1) argument. If DICTDCONF_MOD is not defined, nothing more happens.

I'll attach the patch

Reproducible: Always
Steps to Reproduce:
1.Make sure dictd is not running
2.# /etc/init.d/dictd start

Actual Results:  
 * Re-caching dependency info (mtimes differ)...
 * Starting dictd...
 * Scanning for dictionaries...
 * Done, 4 dictionary indexes found.
:E: /etc/dict/dictd.conf is not readable (config file)
/sbin/runscript.sh: line 532: 15986 Segmentation Fault  start-stop-daemon
--start --quiet --exec /usr/sbin/dictd -- $EARGS                               
                                                [ !! ]

Expected Results:  
 * Starting dictd...
 * Scanning for dictionaries...
 * Changing mod
 * Done, 4 dictionary indexes found.                                           
                                                                               
                                              [ ok ]
Comment 1 Étienne Buira 2005-04-27 13:58:05 UTC
Created attachment 57437 [details, diff]
dictd-initd-mod
Comment 2 Étienne Buira 2005-04-27 13:59:33 UTC
Comment on attachment 57437 [details, diff]
dictd-initd-mod

Patch to chmod the conf file after listing dicts
Comment 3 Wulf Krueger (RETIRED) gentoo-dev 2007-08-18 01:17:33 UTC
Fixed in dictd-1.10.9.
Comment 4 Peter Volkov (RETIRED) gentoo-dev 2008-09-12 19:13:10 UTC
BUIRA I'm dropping DICTDCONF_MOD from conf.d/dictd file and make initrc script itself check and set correct permissions. If you still using dictd, please, give dictd-1.10.11-r1.ebuild a try. Thank you.