Relative symlink in /var/lib/transmission-daemon should be absolute

Bug #1828908 reported by Jason Heeris
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
transmission (Ubuntu)
New
Undecided
Unassigned

Bug Description

~ ⌘ lsb_release -rd
Description: Ubuntu 18.04.2 LTS
Release: 18.04

~ ⌘ apt-cache policy transmission-daemon
transmission-daemon:
  Installed: 2.92-3ubuntu2
  Candidate: 2.92-3ubuntu2
  Version table:
 *** 2.92-3ubuntu2 500
        500 http://au.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
        100 /var/lib/dpkg/status

After installing transmission-daemon, the directory /var/lib/transmission-daemon/ contains a directory symlinked to '.config/transmission-daemon':

~ ⌘ sudo ls -alh /var/lib/transmission-daemon/info
lrwxrwxrwx 1 root root 27 Feb 7 2018 /var/lib/transmission-daemon/info -> .config/transmission-daemon

Since this is a relative link, if I start transmission-daemon in an arbitrary directory, I get the following errors:

~ ⌘ sudo -u debian-transmission transmission-daemon -f --log-error --log-info --log-debug
[2019-05-14 11:29:52.373] Couldn't read "/home/jason/.config/user-dirs.dirs": Permission denied
[2019-05-14 11:29:53.628] Couldn't create "/home/jason/.config/transmission-daemon": Permission denied (file-posix.c:189)
[2019-05-14 11:29:53.628] Couldn't create "/home/jason/.config/transmission-daemon": Permission denied (file-posix.c:189)
[2019-05-14 11:29:53.628] Couldn't create "/home/jason/.config/transmission-daemon": Permission denied (file-posix.c:189)
[2019-05-14 11:29:53.628] Transmission 2.92 (14714) started (session.c:740)
[2019-05-14 11:29:53.628] Couldn't read "/home/jason/.config/transmission-daemon/stats.json": No such file or directory (utils.c:238)
[2019-05-14 11:29:53.628] Couldn't read "/home/jason/.config/transmission-daemon/stats.benc": No such file or directory (utils.c:238)

It seems like this should be an absolute link, since there actually is a directory /var/lib/transmission-daemon/info/.config/transmission-daemon

Revision history for this message
Jason Heeris (detly) wrote :

I think my report is not accurate. Replacing the symlink with an absolute one didn't help. Transmission seems to want to read my user dirs no matter what.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.