projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3baed03
)
windows no chown on log file generation
author
Andy Green
<andy@warmcat.com>
Wed, 11 May 2016 11:00:15 +0000
(19:00 +0800)
committer
Andy Green
<andy@warmcat.com>
Wed, 11 May 2016 11:00:15 +0000
(19:00 +0800)
https://github.com/warmcat/libwebsockets/issues/524
Signed-off-by: Andy Green <andy@warmcat.com>
lib/context.c
patch
|
blob
|
history
diff --git
a/lib/context.c
b/lib/context.c
index
83be24b
..
ac7d7d8
100644
(file)
--- a/
lib/context.c
+++ b/
lib/context.c
@@
-373,11
+373,13
@@
lws_create_vhost(struct lws_context *context,
info->log_filepath);
goto bail;
}
+#ifndef WIN32
if (context->uid != -1)
if (chown(info->log_filepath, context->uid,
context->gid) == -1)
lwsl_err("unable to chown log file %s\n",
info->log_filepath);
+#endif
} else
vh->log_fd = LWS_INVALID_FILE;
#endif