|Subject:||[PATCH] privilege nit in 11sockopts.t|
|Date:||Mon, 27 Jan 2014 08:32:56 -0600|
|To:||bug-IO-Socket-IP [...] rt.cpan.org|
|From:||"Craig A. Berry" <craigberry [...] mac.com>|
When IO::Socket::IP came into core, 11sockopts.t was dying after test 2 on VMS with Cannot socket() - permission denied at [.t]11sockopts.t line 47. The test succeeded with elevated privileges but failed as above with normal user privileges. Tracing this through the Perl debugger revealed that the socket was getting created ok but the failure happened when calling setsockopt() with SO_BROADCAST. I eventually found some docs  indicating that broadcasting datagrams normally requires elevated privileges on VMS. This requirement can be turned off by a system-level setting, but obviously asking people to remove a security requirement to run the Perl test suite isn't reasonable, so I patched up the test to detect this condition and skip. See attached patch.  Show quoted text
________________________________________ Craig A. Berry mailto:email@example.com "... getting out of a sonnet is much more difficult than getting in." Brad Leithauser
Message body is not shown because sender requested not to inline it.