Skip to content
Snippets Groups Projects
Commit d5c43f4a authored by Andy Green's avatar Andy Green
Browse files

windows no chown on log file generation

parent 3baed037
Branches
Tags
No related merge requests found
...@@ -373,11 +373,13 @@ lws_create_vhost(struct lws_context *context, ...@@ -373,11 +373,13 @@ lws_create_vhost(struct lws_context *context,
info->log_filepath); info->log_filepath);
goto bail; goto bail;
} }
#ifndef WIN32
if (context->uid != -1) if (context->uid != -1)
if (chown(info->log_filepath, context->uid, if (chown(info->log_filepath, context->uid,
context->gid) == -1) context->gid) == -1)
lwsl_err("unable to chown log file %s\n", lwsl_err("unable to chown log file %s\n",
info->log_filepath); info->log_filepath);
#endif
} else } else
vh->log_fd = LWS_INVALID_FILE; vh->log_fd = LWS_INVALID_FILE;
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment