[MacPorts] #67134: vsftpd @3.0.5 (net) fails on connection, apparently due setrlimit() syscall with undefined argument in Monterey
MacPorts
noreply at macports.org
Thu Mar 23 04:31:33 UTC 2023
#67134: vsftpd @3.0.5 (net) fails on connection, apparently due setrlimit() syscall
with undefined argument in Monterey
-------------------------------+--------------------
Reporter: philscott799 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Keywords: execution failure | Port: vsftpd
-------------------------------+--------------------
{{{
$ telnet localhost 21
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
500 OOPS: setrlimit
Connection closed by foreign host.
}}}
This apparently happens because Apple has dropped support for the
RLIMIT_AS argument to the setrlimit() syscall in Monterey. The
documentation of syscall.c in the distribution mentions that this argument
is also missing in OpenBSD and the author has provided an #ifdef to
isolate the offending code for that operating system. It's not clear why
this #ifdef doesn't also work for macOS.
It seems to me that the easiest fix for this would be to undef RLIMIT_AS
in the compile options, although I am no programmer so I may have
misunderstood the problem.
FYI the homebrew folks have patched the code in syscall.c,
https://github.com/Homebrew/homebrew-core/issues/88570
I have emailed the developer of vsftpd who has not replied.
--
Ticket URL: <https://trac.macports.org/ticket/67134>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list