Bug 239391 - ftp/pure-ftpd: Using pureftpd_flags causes 421 Invalid argument: "/usr/local/etc/pure-ftpd.conf"
Summary: ftp/pure-ftpd: Using pureftpd_flags causes 421 Invalid argument: "/usr/local/...
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Po-Chuan Hsieh
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2019-07-23 02:56 UTC by Christian Baltini
Modified: 2025-03-25 00:00 UTC (History)
2 users (show)

See Also:
koobs: maintainer-feedback? (sunpoet)
koobs: merge-quarterly?


Attachments
[PATCH] ftp/pure-ftpd: add @sample keywords and fix rc command_args (2.35 KB, patch)
2025-03-21 18:32 UTC, Siva Mahadevan
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Baltini 2019-07-23 02:56:27 UTC
Steps to reproduce
pkg install pure-ftpd

Add to /etc/rc.conf
pureftpd_enable="YES"
pureftpd_flags="-4" # Can be any other argument, as well

Run service pure-ftpd start:

Starting pureftpd.
421 Invalid argument: "/usr/local/etc/pure-ftpd.conf"
/usr/local/etc/rc.d/pure-ftpd: WARNING: failed to start pureftpd
Comment 1 Siva Mahadevan freebsd_triage 2025-03-21 18:32:13 UTC
Created attachment 258890 [details]
[PATCH] ftp/pure-ftpd: add @sample keywords and fix rc command_args

This is intended behaviour by upstream. See https://github.com/jedisct1/pure-ftpd/blob/15246910744807685fe00e1b301bd8e68123ed16/README.Configuration-File#L30-L31

Command line flags are intended to be mutually exclusive with using a configuration file. Thus, to reflect this, I've attached a patch that forces the pureftpd_flags variable to be mutually exclusive with pureftpd_config. Please see if this is suitable.