Sun Mar 3 04:35:58 2024 UTC (80d)
mozilla-certdata: Fix typo: sprintf, not snprintf, in awk.

Only used during import, and only in case something is wrong anyway
requiring manual intervention, so no change to builds.


(riastradh)
diff -r1.2 -r1.3 src/external/mpl/mozilla-certdata/share/certdata.awk

cvs diff -r1.2 -r1.3 src/external/mpl/mozilla-certdata/share/certdata.awk (expand / switch to unified diff)

--- src/external/mpl/mozilla-certdata/share/certdata.awk 2023/10/11 19:57:25 1.2
+++ src/external/mpl/mozilla-certdata/share/certdata.awk 2024/03/03 04:35:58 1.3
@@ -417,27 +417,27 @@ $1 == "CKA_LABEL" { @@ -417,27 +417,27 @@ $1 == "CKA_LABEL" {
417 } 417 }
418 label_lineno[lolab] = NR 418 label_lineno[lolab] = NR
419 } else { 419 } else {
420 if (VERBOSE) 420 if (VERBOSE)
421 printf "line %d: trust \"%s\"\n", NR, label 421 printf "line %d: trust \"%s\"\n", NR, label
422 # Hack: Take the highest-numbered counter for this label. 422 # Hack: Take the highest-numbered counter for this label.
423 if (lolab in label_counter) { 423 if (lolab in label_counter) {
424 label = sprintf("%s.%d", label, label_counter[lolab]) 424 label = sprintf("%s.%d", label, label_counter[lolab])
425 lolab = tolower(label) 425 lolab = tolower(label)
426 printf "line %s: assuming duplicate is \"%s\"\n", \ 426 printf "line %s: assuming duplicate is \"%s\"\n", \
427 NR, label 427 NR, label
428 } 428 }
429 if (!(lolab in label_lineno)) { 429 if (!(lolab in label_lineno)) {
430 err(snprintf("Missing label: %s", label)) 430 err(sprintf("Missing label: %s", label))
431 skip() 431 skip()
432 next 432 next
433 } 433 }
434 } 434 }
435 435
436 # Apply special cases. 436 # Apply special cases.
437 if (cka_class == "CKO_CERTIFICATE") { 437 if (cka_class == "CKO_CERTIFICATE") {
438 if (label in special_distrust) { 438 if (label in special_distrust) {
439 printf "line %s: specially distrusting \"%s\"\n", \ 439 printf "line %s: specially distrusting \"%s\"\n", \
440 NR, label 440 NR, label
441 distrusted[lolab] = 1 441 distrusted[lolab] = 1
442 delete special_distrust[label] 442 delete special_distrust[label]
443 } 443 }