<?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>178883</bug_id>
          
          <creation_ts>2007-05-17 14:31 0000</creation_ts>
          <short_desc>net-p2p/mldonkey-2.8.5 - mldonkey command line fails to read /etc/conf.d/mldonkey with normal user</short_desc>
          <delta_ts>2007-05-17 15:26:18 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>Applications</component>
          <version>2006.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>simpledark@gmail.com</reporter>
          <assigned_to>net-p2p@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>simpledark@gmail.com</who>
            <bug_when>2007-05-17 14:31:09 0000</bug_when>
            <thetext>Since /etc/conf.d/mldonkey has -rw------- 1 root root permissions, starting mldonkey with the supplied script fails with error message:

$ mldonkey 
/usr/bin/mldonkey: line 3: /etc/conf.d/mldonkey: Permission denied

Since the user is not root and the script tries to read the conf.d/mldonkey file, the error pops up.

Suggestions to workaround:
1. Start the app with mlnet
2. Make the conf.d file with perms -rw-r----- 1 p2p p2p and create the p2p group
3. Remove the 3rd line from /usr/bin/mldonkey (not sure what the line is needed for)

Reproducible: Always

Steps to Reproduce:
1. Login as normal user
2. type mldonkey in console

Actual Results:  
$ mldonkey 
/usr/bin/mldonkey: line 3: /etc/conf.d/mldonkey: Permission denied


Expected Results:  
$ mldonkey 
2007/05/17 15:25:33 [cO] Starting MLDonkey 2.8.5 ... 
2007/05/17 15:25:33 [cO] Language PT, locale UTF-8, ulimit for open files 1024
2007/05/17 15:25:33 [cO] MLDonkey is working in /home/user/.mldonkey
2007/05/17 15:25:33 [cO] creating new MLDonkey base directory in /home/user/.mldonkey
2007/05/17 15:25:33 [cO] loaded language resource file
(...)

Ebuild reports:
 * Running `mldonkey&apos; will start the server inside ~/.mldonkey/

Working only for root ATM.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>armin76@gentoo.org</who>
            <bug_when>2007-05-17 15:26:18 0000</bug_when>
            <thetext>The mldonkey script is useless.

mlnet already creates the needed dirs.

Removed, thanks.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>