Bugzilla – Bug 904
sudo: setrlimit(8): Invalid argument
Last modified: 2019-12-31 15:08:32 MST
After updating to sudo 1.8.29 for MacPorts, I get the following message when invoking sudo: sudo: setrlimit(8): Invalid argument Also see: https://trac.macports.org/ticket/59513 This message is seen by multiple macOS versions. The ticket reporter is running 10.7.5, while my build machine has 10.14.6.
Created attachment 533 [details] Avoid setrlimit warnings on macOS macOS does not allow rlim_cur to be set to RLIM_INFINITY for RLIMIT_NOFILE. We need to use OPEN_MAX instead as per the macOS setrlimit manual.
Committed as https://www.sudo.ws/repos/sudo/rev/2a00e62eaeb0
Fixed in sudo 1.8.30