Source: vsftpd
Version: 3.0.2-17
Severity: normal
User: syst...@packages.debian.org
Usertags: systemd-units tmpfiles.d
X-Debbugs-CC: debian-ad...@lists.debian.org
User: debian-ad...@lists.debian.org
Usertags: needed-by-DSA-Team

The systemd service file contains this line:

ExecStartPre=-/bin/mkdir -p /var/run/vsftpd/empty

The correct way to do this is to add tmpfiles.d config:

Please add this to debian/vsftpd.tmpfile:
d /var/run/vsftpd/empty 0755 root root -

Please add this to debian/postinst:
systemd-tmpfiles --create --exclude-prefix=/dev

This is more correct and is also needed so that people running vsftpd
from xinetd or via methods other than via the vsftpd.service file will
not get vsftpd crashing when that directory doesn't exist.

I would suggest this get fixed in Debian jessie.

More info about tmpfiles.d is available here:

http://manpages.debian.org/man5/tmpfiles.d

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to