Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
{"schema":"libjg2-1", "vpath":"/git/", "avatar":"/git/avatar/", "alang":"", "gen_ut":1746416174, "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":"a33e7f2a847b8b77fdc8ac8254d6f495", "commit": {"type":"commit", "time": 1489722225, "time_ofs": 480, "oid_tree": { "oid": "7f3ea5a6f2889cc4921a9e72ff0492cff009423f", "alias": []}, "oid":{ "oid": "2e874dea5048b192c08f477c00f9053285857f0d", "alias": []}, "msg": "windows: cannot use fstat", "sig_commit": { "git_time": { "time": 1489722225, "offset": 480 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }, "sig_author": { "git_time": { "time": 1489722225, "offset": 480 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }}, "body": "windows: cannot use fstat" , "diff": "diff --git a/lib/server.c b/lib/server.c\nindex 3c2e498..e5ba891 100644\n--- a/lib/server.c\n+++ b/lib/server.c\n@@ -391,11 +391,17 @@ lws_http_serve(struct lws *wsi, char *uri, const char *origin,\n \t\t/* if it can't be statted, don't try */\n \t\tif (fflags \u0026 LWS_FOP_FLAG_VIRTUAL)\n \t\t\tbreak;\n-\n+#if !defined(WIN32)\n \t\tif (fstat(wsi-\u003eu.http.fop_fd-\u003efd, \u0026st)) {\n \t\t\tlwsl_info(\u0022unable to stat %s\u005cn\u0022, path);\n \t\t\tgoto bail;\n \t\t}\n+#else\n+\t\tif (stat(path, \u0026st)) {\n+\t\t\tlwsl_info(\u0022unable to stat %s\u005cn\u0022, path);\n+\t\t\tgoto bail;\n+\t\t}\n+#endif\n \n \t\twsi-\u003eu.http.fop_fd-\u003emod_time \u003d (uint32_t)st.st_mtime;\n \t\tfflags |\u003d LWS_FOP_FLAG_MOD_TIME_VALID;\n","s":{"c":1746416174,"u": 3120}} ],"g": 4439,"chitpc": 0,"ehitpc": 0,"indexed":0 , "ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}