Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
{"schema":"libjg2-1", "vpath":"/git/", "avatar":"/git/avatar/", "alang":"", "gen_ut":1753165489, "reponame":"libwebsockets", "desc":"libwebsockets lightweight C networking library", "owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://libwebsockets.org/repo/libwebsockets", "f":3, "items": [ {"schema":"libjg2-1", "cid":"ee2c68c19c5a4d87774c836283cd9903", "commit": {"type":"commit", "time": 1536661679, "time_ofs": 480, "oid_tree": { "oid": "f71f25a31a7ba182af90143dd28465ee446eac9d", "alias": []}, "oid":{ "oid": "89902847a8a2890796cd29484a145e378684ba63", "alias": []}, "msg": "unix skt: default on", "sig_commit": { "git_time": { "time": 1536661679, "offset": 480 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }, "sig_author": { "git_time": { "time": 1535084438, "offset": 480 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }}, "body": "unix skt: default on" , "diff": "diff --git a/CMakeLists.txt b/CMakeLists.txt\nindex 6b5288b..5c140c8 100644\n--- a/CMakeLists.txt\n+++ b/CMakeLists.txt\n@@ -27,7 +27,7 @@ option(LWS_WITH_HTTP2 \u0022Compile with server support for HTTP/2\u0022 OFF)\n option(LWS_WITH_LWSWS \u0022Libwebsockets Webserver\u0022 OFF)\n option(LWS_WITH_CGI \u0022Include CGI (spawn process with network-connected stdin/out/err) APIs\u0022 OFF)\n option(LWS_IPV6 \u0022Compile with support for ipv6\u0022 OFF)\n-option(LWS_UNIX_SOCK \u0022Compile with support for UNIX domain socket\u0022 OFF)\n+option(LWS_UNIX_SOCK \u0022Compile with support for UNIX domain socket\u0022 ON)\n option(LWS_WITH_PLUGINS \u0022Support plugins for protocols and extensions\u0022 OFF)\n option(LWS_WITH_HTTP_PROXY \u0022Support for rewriting HTTP proxying (requires libhubbub)\u0022 OFF)\n option(LWS_WITH_ZIP_FOPS \u0022Support serving pre-zipped files\u0022 OFF)\ndiff --git a/lib/core/libwebsockets.c b/lib/core/libwebsockets.c\nindex eeb9e16..351db79 100644\n--- a/lib/core/libwebsockets.c\n+++ b/lib/core/libwebsockets.c\n@@ -2593,9 +2593,11 @@ lws_socket_bind(struct lws_vhost *vhost, lws_sockfd_type sockfd, int port,\n \t}\n \n #if defined(LWS_WITH_UNIX_SOCK)\n-\tif (LWS_UNIX_SOCK_ENABLED(vhost) \u0026\u0026 vhost-\u003econtext-\u003euid) {\n-\t\tchown(serv_unix.sun_path, vhost-\u003econtext-\u003euid, vhost-\u003econtext-\u003egid);\n-\t}\n+\tif (LWS_UNIX_SOCK_ENABLED(vhost) \u0026\u0026 vhost-\u003econtext-\u003euid)\n+\t\tif (chown(serv_unix.sun_path, vhost-\u003econtext-\u003euid,\n+\t\t\t vhost-\u003econtext-\u003egid))\n+\t\t\tlwsl_notice(\u0022%s: chown for unix skt %s failed\u005cn\u0022,\n+\t\t\t\t __func__, serv_unix.sun_path);\n #endif\n \n #ifndef LWS_PLAT_OPTEE\n","s":{"c":1753165489,"u": 7717}} ],"g": 9129,"chitpc": 0,"ehitpc": 0,"indexed":0 , "ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}