<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>90657</bug_id>
          
          <creation_ts>2005-04-27 13:56 0000</creation_ts>
          <short_desc>dictd&apos;s initrc script don&apos;t take care of umask</short_desc>
          <delta_ts>2008-09-12 19:13:10 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Server</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>etienne.buira@free.fr</reporter>
          <assigned_to>app-dicts@gentoo.org</assigned_to>
          <cc>dushistov@mail.ru</cc>

      

      
          <long_desc isprivate="0">
            <who>etienne.buira@free.fr</who>
            <bug_when>2005-04-27 13:56:23 0000</bug_when>
            <thetext>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&apos;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 ]</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>etienne.buira@free.fr</who>
            <bug_when>2005-04-27 13:58:05 0000</bug_when>
            <thetext>Created an attachment (id=57437)
Patch to chmod the conf file after listing dicts
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>etienne.buira@free.fr</who>
            <bug_when>2005-04-27 13:59:33 0000</bug_when>
            <thetext>(From update of attachment 57437)
Patch to chmod the conf file after listing dicts
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>philantrop@gentoo.org</who>
            <bug_when>2007-08-18 01:17:33 0000</bug_when>
            <thetext>Fixed in dictd-1.10.9.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pva@gentoo.org</who>
            <bug_when>2008-09-12 19:13:10 0000</bug_when>
            <thetext>BUIRA I&apos;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.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>57437</attachid>
            <date>2005-04-27 13:58 0000</date>
            <desc>dictd-initd-mod</desc>
            <filename>dictd-initd-mod</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGRpY3RkLm9yaWcJMjAwNS0wNC0yNyAyMToxODowNi4wMDAwMDAwMDAgKzAxMDAKKysrIGRp
Y3RkCTIwMDUtMDQtMjcgMjE6NTU6MjEuMDAwMDAwMDAwICswMTAwCkBAIC01MSw2ICs1MSw5IEBA
CiAJZG9uZQogCXBvcGQgPi9kZXYvbnVsbAogCW12ICR7VE1QQ09ORn0gJHtESUNURENPTkZ9CisJ
aWYgWyAtbiAiJHtESUNURENPTkZfTU9EfSIgXTsgdGhlbgorCQljaG1vZCAke0RJQ1REQ09ORl9N
T0R9ICR7RElDVERDT05GfQorCWZpCiAJZWluZm8gIkRvbmUsICRDTlQgZGljdGlvbmFyeSBpbmRl
eGVzIGZvdW5kLiIKIH0KIAo=
</data>        

          </attachment>
    </bug>

</bugzilla>