FS#46264 - [transmission-cli] Avoid useradd -m to prevent pulling in /etc/skel content.

Attached to Project: Arch Linux
Opened by Earnestly (Earnest) - Friday, 11 September 2015, 18:19 GMT
Last edited by Bartłomiej Piotrowski (Barthalion) - Friday, 15 July 2016, 08:04 GMT
Task Type General Gripe
Category Packages: Extra
Status Closed
Assigned To Ionut Biru (wonder)
Anatol Pomozov (anatolik)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

This is a very trivial OCD-level gripe.

Looking over a few untracked files on the system and I found
`/var/lib/transmission` containing many of the old `/etc/skel` files.

This is due to the call to `useradd -m` in the scriptlet.

Would you perhaps change this to use `mkdir -p /var/lib/transmission` and
remove `-m` from `useradd` in the scriptlet?
This task depends upon

Closed by  Bartłomiej Piotrowski (Barthalion)
Friday, 15 July 2016, 08:04 GMT
Reason for closing:  Fixed
Additional comments about closing:  transmission 2.92-3
Comment by Christoph Gysin (christoph.gysin) - Monday, 14 September 2015, 19:22 GMT
Attached patch should fix this.
Comment by Anatol Pomozov (anatolik) - Monday, 14 September 2015, 20:10 GMT
I currently cannot test the patch (travelling). I think the newly created directory ownership should be changes to 'transmission' user. Test the installation by uninstalling transmission package then completely removing /var/lib/transmission and then reinstalling the package back.
Comment by Christoph Gysin (christoph.gysin) - Tuesday, 15 September 2015, 05:26 GMT
Even better, we can use -k /dev/null to keep creating the home without pulling in /etc/skel.

Loading...