Summary: | net/luasocket: truncates unix socket name | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Hugh Daschbach <hugh> | ||||
Component: | Individual Port(s) | Assignee: | Po-Chuan Hsieh <sunpoet> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Some People | CC: | freebsd | ||||
Priority: | --- | ||||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=7b22ba2f41006419913adfab9cb4e47f27e96df1 commit 7b22ba2f41006419913adfab9cb4e47f27e96df1 Author: Hugh Daschbach <hugh@ccss.com> AuthorDate: 2023-03-21 18:57:04 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2023-03-21 19:22:36 +0000 net/luasocket: Fix unix socket name by adding correct PLAT definition - Bump PORTREVISION for package change PR: 268968 net/luasocket/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Committed. Thanks! |
Created attachment 239480 [details] patch: Add PLAT definition to ports Makefile. Full disclosure: I am not (yet) a FreeBSD user. But this issue has been discussed in a prosody-im chat room. This issue can be verified by running: - lua54 /usr/ports/net/luasocket/work-lua54/luasocket-3.1.0/test/utestsrvr.lua Then killing the process as it waits for client connection. From the source of utestsrv.lua, the program should create a socket named "luasocket" in the current directory. Instead it creates a socket named "luasocke" (one character truncation). The problem can be fixed by adding "PLAT=freebsd" to the "MAKE_ARGS" definition in the ports Makefile. Patch attached.