Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2000-11-17 14:30:14 +0300
committerCorinna Vinschen <corinna@vinschen.de>2000-11-17 14:30:14 +0300
commit1126c2b0421fbbeb0c94e299f11cd076d5d69261 (patch)
treec5786d8be1eeb12f35fc4001e5d873583801a66b /winsup/cygwin/syslog.cc
parent879c4435944710cbc21b92c208205aa701813fad (diff)
* syslog.cc (syslog): Add users SID to NT syslog entry.
Diffstat (limited to 'winsup/cygwin/syslog.cc')
-rw-r--r--winsup/cygwin/syslog.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/syslog.cc b/winsup/cygwin/syslog.cc
index 233c8916e..d0dda8b75 100644
--- a/winsup/cygwin/syslog.cc
+++ b/winsup/cygwin/syslog.cc
@@ -17,6 +17,7 @@ details. */
#include "fhandler.h"
#include "dtable.h"
#include "cygerrno.h"
+#include "cygheap.h"
#include "thread.h"
/* FIXME: These should probably be in the registry. */
@@ -348,7 +349,7 @@ syslog (int priority, const char *message, ...)
return;
}
ReportEventA (hEventSrc, eventType, 0, 0,
- NULL, 1, 0, msg_strings, NULL);
+ cygheap->user.sid (), 1, 0, msg_strings, NULL);
DeregisterEventSource (hEventSrc);
}
else