[wiki] [sites] [quark][patch][digestauth] fix -a parameter bug || José Miguel Sánchez García
commit c5f1fdefb49c01f9ff1622ab22ba053d3ba9fc3a
Author: José Miguel Sánchez García <soy.jmi2k_AT_gmail.com>
Date: Fri Oct 30 18:43:45 2020 +0000
[quark][patch][digestauth] fix -a parameter bug
diff --git a/tools.suckless.org/quark/patches/digestauth/quark-digestauth-20200916-5d0221d.diff b/tools.suckless.org/quark/patches/digestauth/quark-digestauth-20200916-5d0221d.diff
index d1abdfd3..ed3eeeb8 100644
--- a/tools.suckless.org/quark/patches/digestauth/quark-digestauth-20200916-5d0221d.diff
+++ b/tools.suckless.org/quark/patches/digestauth/quark-digestauth-20200916-5d0221d.diff
_AT_@ -1,4 +1,4 @@
-From d006445858e709222093baaddb71d582654dc0e4 Mon Sep 17 00:00:00 2001
+From b62f5dbb095f337f62ed3379948da4283175d7fb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jos=C3=A9=20Miguel=20S=C3=A1nchez=20Garc=C3=ADa?=
<soy.jmi2k_AT_gmail.com>
Date: Thu, 29 Oct 2020 10:05:27 +0000
_AT_@ -523,7 +523,7 @@ index bfaa807..12de2eb 100644
#endif /* HTTP_H */
diff --git a/main.c b/main.c
-index d64774b..b23e165 100644
+index d64774b..b45ad15 100644
--- a/main.c
+++ b/main.c
_AT_@ -60,11 +60,17 @@ serve(struct connection *c, const struct server *srv)
_AT_@ -638,8 +638,8 @@ index d64774b..b23e165 100644
+ sizeof(struct account)))) {
+ die("reallocarray:");
+ }
-+ realm->account[i].username = tok[1];
-+ realm->account[i].crypt = tok[2];
++ realm->account[realm->account_len - 1].username = tok[1];
++ realm->account[realm->account_len - 1].crypt = tok[2];
+ break;
case 'd':
servedir = EARGF(usage());
Received on Fri Oct 30 2020 - 19:45:17 CET
This archive was generated by hypermail 2.3.0
: Fri Oct 30 2020 - 19:48:45 CET