861ac185a6
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
11 lines
443 B
Diff
11 lines
443 B
Diff
--- a/loudmouth/lm-sasl.c 2016-02-13 12:16:45.000000000 +0100
|
|
+++ b/loudmouth/lm-sasl.c 2017-11-12 14:55:20.995838985 +0100
|
|
@@ -529,7 +529,7 @@
|
|
}
|
|
|
|
nonce = g_hash_table_lookup (challenge, "nonce");
|
|
- if (nonce == NULL || nonce == '\0') {
|
|
+ if (nonce == NULL || *nonce == '\0') {
|
|
g_log (LM_LOG_DOMAIN, LM_LOG_LEVEL_SASL,
|
|
"%s: server didn't provide a nonce in the challenge",
|
|
G_STRFUNC);
|