Opened 16 years ago

Closed 16 years ago

#728 closed bug (Invalid)

/etc/init.d/deluged finds the incorrect home directory

Reported by: dev@mattfarmer.net Owned by: andar
Priority: major Milestone:
Component: Unknown Version: 1.1.0
Keywords: startupscript init.d Cc:

Description

When running /etc/init.d/deluged the script can find the wrong home directory of a user if DELUGED_USER is set to a username that also appears inside of another username on the system.

Example:

$ DELUGED_USER=my_user:my_user
$ getent passwd | grep $( echo "${DELUGED_USER}" | cut -d ':' -f 1 )
my_user:x:1000:1000::/home/my_user:/bin/bash
my_user_on_another_machine:x:501:100:,,,:/space:/bin/bash

In this example it will return /space, instead of /home/my_user.

Patch attached.

Attachments (1)

etc-init.d-deluge.patch (731 bytes ) - added by dev@mattfarmer.net 16 years ago.
minor patch to resolve the issue.

Download all attachments as: .zip

Change History (2)

by dev@mattfarmer.net, 16 years ago

Attachment: etc-init.d-deluge.patch added

minor patch to resolve the issue.

comment:1 by dev@mattfarmer.net, 16 years ago

Resolution: invalid
Status: newclosed

It appears this script is a part of gentoo's install, and not deluge itself. See http://bugs.gentoo.org/show_bug.cgi?id=254995 for more details.

Note: See TracTickets for help on using tickets.