Staging
v0.5.1
https://github.com/python/cpython
Revision eac0939ddd56f60664de9cb85aa32910d7b22c78 authored by R David Murray on 29 March 2012, 11:15:45 UTC, committed by R David Murray on 29 March 2012, 11:15:45 UTC
Unlike the other facilities, we don't use a fallback for AUTHPRIV if it
doesn't exist.  Because it is intended for logging sensitive log messages, it
is better that a program trying to log such messages fail than that it log
them insecurely.

Initial patch by Federico Reghenzani.
1 parent 8c69632
Raw File
Tip revision: eac0939ddd56f60664de9cb85aa32910d7b22c78 authored by R David Murray on 29 March 2012, 11:15:45 UTC
#14416: conditionally add LOG_AUTHPRIV facility and LOG_ODELAY to syslog.
Tip revision: eac0939
strdup.c
/* strdup() replacement (from stdwin, if you must know) */

#include "pgenheaders.h"

char *
strdup(const char *str)
{
	if (str != NULL) {
		register char *copy = malloc(strlen(str) + 1);
		if (copy != NULL)
			return strcpy(copy, str);
	}
	return NULL;
}
back to top