Thanks.
Ian
Link to previous review discussion:
http://groups.google.com/group/distcc-patches/browse_thread/thread/782679a5067c867c#
--- quilt-distcc-3.1/distcc-3.1/src/auth_common.c
+++ quilt-distcc-3.1/distcc-3.1/src/auth_common.c
diff -u quilt-distcc-3.1/distcc-3.1/src/auth_distcc.c quilt-distcc-3.1/distcc-3.1/src/auth_distcc.c
--- quilt-distcc-3.1/distcc-3.1/src/auth_distcc.c
+++ quilt-distcc-3.1/distcc-3.1/src/auth_distcc.c
@@ -35,7 +35,6 @@
#include "netutil.h"
#include "trace.h"
-static int dcc_gssapi_get_services_from_env_and_build_flags(OM_uint32 *req_flags);
static int dcc_gssapi_establish_secure_context(int to_net_sd,
int from_net_sd,
OM_uint32 req_flags,
@@ -49,7 +48,7 @@
/*
* Perform any requested security. Message replay and out of sequence
- * detection are given in adition to those specified by the user.
+ * detection are given in adition to mutual authentication.
Link to previous review discussion:
http://groups.google.com/group/distcc-patches/browse_thread/thread/b3e078dd8a9adf81#
This patch was ready to be committed, but the resolution has been
increased to include microseconds.
diff -u quilt-distcc-3.1/distcc-3.1/src/trace.c quilt-distcc-3.1/distcc-3.1/src/trace.c
--- quilt-distcc-3.1/distcc-3.1/src/trace.c
+++ quilt-distcc-3.1/distcc-3.1/src/trace.c
@@ -39,6 +39,7 @@
#include <stdarg.h>
#include <syslog.h>
#include <time.h>
+#include <sys/time.h>
#include "trace.h"
#include "snprintf.h"
@@ -322,23 +323,32 @@
size_t len;
char timebuf[128];
size_t timebuflen;
- time_t now;
struct tm *timestamp;
char *timestamp_opt;
+ char *entry = NULL;
+ struct timeval time_val;
+ time_t curr_time;
if ((timestamp_opt = getenv("DISTCC_TIMESTAMP"))) {
- if (*timestamp_opt == '1') {
- now = time(NULL);
+ if (*timestamp_opt == '1') {
+ gettimeofday(&time_val, NULL);
+ curr_time = time_val.tv_sec;
- if ((timestamp = localtime(&now)) != NULL) {
- timebuflen = strftime(timebuf, 128, "%F %T ", timestamp);
- } else {
- strcpy(timebuf, "localtime() NULL??? ");
- timebuflen = strlen(timebuf);
- }
+ if ((timestamp = localtime(&curr_time)) != NULL) {
+ timebuflen = strftime(timebuf, 128, "%F %T", timestamp);
+
+ if (asprintf(&entry, "%s.%ld ", timebuf, time_val.tv_usec) < 0) {