Fix to retire ProFTPD virtual FTP feature#1213
Conversation
Jamie, please see this patch 0e336da. |
|
So is the goal here to remove FTP support entirely, or just the virtual FTP feature? Because I see PR is deleting things like the ability to stop and start the FTP server, which I think we should keep. Also support for chroot'd FTP. |
You're right! Sorry about that! The fix is here e79471f. |
Code review failedRepository: The virtual FTP removal mostly updates feature lists and callers, but the now-unconditional chroot backup entry can break Virtualmin backups when ProFTPd is not available.
Commit | Reviewed diff | Patch | GitHub run Findings
Reviewed
Passed checks
|
Jamie, code review is wrong, right?
|
| local $f = shift(@ARGV); | ||
| $f eq "virtualmin" || $config{$f} || | ||
| $f eq "virtualmin" || | ||
| (&indexof($f, @features) >= 0 && $config{$f}) || |
There was a problem hiding this comment.
We could remove the need for this extra check of @features by just removing ftp from the module config in postinstall.pl
There was a problem hiding this comment.
We could remove the need for this extra check of @features by just removing ftp from the module config in postinstall.pl
Probably better to keep the check here so we don’t break anything on existing systems?
There was a problem hiding this comment.
But that wouldn't be possible if we removed ftp=1 from /etc/webmin/virtual-server/config at upgrade time.
There was a problem hiding this comment.
Or alternately, create a common function like is_enabled_feature and move the current logic there.
|
Yeah I don't get what that code review is thinking, sorry. The change seems pretty much OK to me, except for one comment I added. |
There was a bug back then in the code review code for PRs that should be fixed now. Thanks. |
Hello, Jamie!
As you asked, creating a PR for this change so we can discuss it.
Thanks, I’ll take a look soon! I just want to finish something first.