View | Details | Raw Unified | Return to bug 54834 | Differences between
and this patch

Collapse All | Expand All

(-)make-certificates_old.sh (-2 / +2 lines)
Lines 346-352 Link Here
346
346
347
get_cert_name_from_id () {
347
get_cert_name_from_id () {
348
	if ! [ -z "$1" ]; then
348
	if ! [ -z "$1" ]; then
349
		list_cert_names_all | awk -v id="$1" '$1 == id {print $2}'
349
		list_cert_names_all | awk -v id="$1" '("x" id)==("x" $1) {print $2}'  # see Bug#54834
350
	fi
350
	fi
351
}
351
}
352
352
Lines 361-367 Link Here
361
	local id="${1:?Missing argument: number}"
361
	local id="${1:?Missing argument: number}"
362
	tac "${SSLBASE}/${CA}/index.txt" | awk -F '\t' -v id="$id" -v now="$(TZ=UTC date +%y%m%d%H%M%S)" '
362
	tac "${SSLBASE}/${CA}/index.txt" | awk -F '\t' -v id="$id" -v now="$(TZ=UTC date +%y%m%d%H%M%S)" '
363
	BEGIN { ret=1; }
363
	BEGIN { ret=1; }
364
	$4 == id {
364
	("x" $4)==("x" id) {
365
		ret = ( $1 != "R" ) ? ( $1 == "V" && $2 >= now ? 0 : 3 ) : 2;
365
		ret = ( $1 != "R" ) ? ( $1 == "V" && $2 >= now ? 0 : 3 ) : 2;
366
		exit;
366
		exit;
367
	}
367
	}

Return to bug 54834