Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
{"schema":"libjg2-1", "vpath":"/git/", "avatar":"/git/avatar/", "alang":"", "gen_ut":1745991000, "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":"9afdc71b26c806e415f96e6e87cfb9b1", "commit": {"type":"commit", "time": 1462964367, "time_ofs": 480, "oid_tree": { "oid": "f4d565d324dc10da929fbf34e7aa05b50ef02016", "alias": []}, "oid":{ "oid": "03e628b9a6d9115f7d8f3541f60efbacf86025f5", "alias": []}, "msg": "windows no chown on log file generation", "sig_commit": { "git_time": { "time": 1462964367, "offset": 480 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }, "sig_author": { "git_time": { "time": 1462964367, "offset": 480 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }}, "body": "windows no chown on log file generation\n\nhttps://github.com/warmcat/libwebsockets/issues/524\n\nSigned-off-by: Andy Green \u003candy@warmcat.com\u003e" , "diff": "diff --git a/lib/context.c b/lib/context.c\nindex 9f1e834..02f18cd 100644\n--- a/lib/context.c\n+++ b/lib/context.c\n@@ -448,11 +448,13 @@ lws_create_vhost(struct lws_context *context,\n \t\t\t\t info-\u003elog_filepath);\n \t\t\tgoto bail;\n \t\t}\n+#ifndef WIN32\n \t\tif (context-\u003euid !\u003d -1)\n \t\t\tif (chown(info-\u003elog_filepath, context-\u003euid,\n \t\t\t\t context-\u003egid) \u003d\u003d -1)\n \t\t\t\tlwsl_err(\u0022unable to chown log file %s\u005cn\u0022,\n \t\t\t\t\t\tinfo-\u003elog_filepath);\n+#endif\n \t} else\n \t\tvh-\u003elog_fd \u003d LWS_INVALID_FILE;\n #endif\n","s":{"c":1745991000,"u": 3231}} ],"g": 4682,"chitpc": 0,"ehitpc": 0,"indexed":0 , "ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}