* [9front] [PATCH] upas/marshal: honor username headers
@ 2022-08-25 18:58 Ricardo Lanziano
2022-09-06 3:19 ` ori
0 siblings, 1 reply; 3+ messages in thread
From: Ricardo Lanziano @ 2022-08-25 18:58 UTC (permalink / raw)
To: 9front
Use login instead of $upasname
---
diff a786a79acfc5079761f8b3efe72142640c1e9d2c 7fbe81115b367b068061c66904ae7e5bb45b2366
--- a/sys/src/cmd/upas/marshal/marshal.c Wed Aug 24 08:55:44 2022
+++ b/sys/src/cmd/upas/marshal/marshal.c Wed Aug 24 18:41:13 2022
@@ -357,7 +357,7 @@
bwritesfree(&out, &hdrstring);
/* read user's standard headers */
- mboxpathbuf(file, sizeof file, user, "headers");
+ mboxpathbuf(file, sizeof file, login, "headers");
if(b = Bopen(file, OREAD)){
if (readheaders(b, &flags, &hdrstring, nil, nil, nil, nil, 0) == Error)
fatal("reading");
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9front] [PATCH] upas/marshal: honor username headers
2022-08-25 18:58 [9front] [PATCH] upas/marshal: honor username headers Ricardo Lanziano
@ 2022-09-06 3:19 ` ori
2022-09-08 4:10 ` unobe
0 siblings, 1 reply; 3+ messages in thread
From: ori @ 2022-09-06 3:19 UTC (permalink / raw)
To: 9front
Quoth Ricardo Lanziano <arpunk@fatelectron.net>:
> Use login instead of $upasname
>
> ---
> diff a786a79acfc5079761f8b3efe72142640c1e9d2c 7fbe81115b367b068061c66904ae7e5bb45b2366
> --- a/sys/src/cmd/upas/marshal/marshal.c Wed Aug 24 08:55:44 2022
> +++ b/sys/src/cmd/upas/marshal/marshal.c Wed Aug 24 18:41:13 2022
> @@ -357,7 +357,7 @@
> bwritesfree(&out, &hdrstring);
>
> /* read user's standard headers */
> - mboxpathbuf(file, sizeof file, user, "headers");
> + mboxpathbuf(file, sizeof file, login, "headers");
> if(b = Bopen(file, OREAD)){
> if (readheaders(b, &flags, &hdrstring, nil, nil, nil, nil, 0) == Error)
> fatal("reading");
(sorry about the slow response)
hm. makes sense to me, but arguable -- you may want
to have custom headers per account, not per user.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9front] [PATCH] upas/marshal: honor username headers
2022-09-06 3:19 ` ori
@ 2022-09-08 4:10 ` unobe
0 siblings, 0 replies; 3+ messages in thread
From: unobe @ 2022-09-08 4:10 UTC (permalink / raw)
To: 9front
Quoth ori@eigenstate.org:
> Quoth Ricardo Lanziano <arpunk@fatelectron.net>:
> > Use login instead of $upasname
> >
> > ---
> > diff a786a79acfc5079761f8b3efe72142640c1e9d2c 7fbe81115b367b068061c66904ae7e5bb45b2366
> > --- a/sys/src/cmd/upas/marshal/marshal.c Wed Aug 24 08:55:44 2022
> > +++ b/sys/src/cmd/upas/marshal/marshal.c Wed Aug 24 18:41:13 2022
> > @@ -357,7 +357,7 @@
> > bwritesfree(&out, &hdrstring);
> >
> > /* read user's standard headers */
> > - mboxpathbuf(file, sizeof file, user, "headers");
> > + mboxpathbuf(file, sizeof file, login, "headers");
> > if(b = Bopen(file, OREAD)){
> > if (readheaders(b, &flags, &hdrstring, nil, nil, nil, nil, 0) == Error)
> > fatal("reading");
>
> (sorry about the slow response)
>
> hm. makes sense to me, but arguable -- you may want
> to have custom headers per account, not per user.
>
indeed.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-09-08 4:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-25 18:58 [9front] [PATCH] upas/marshal: honor username headers Ricardo Lanziano
2022-09-06 3:19 ` ori
2022-09-08 4:10 ` unobe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).