9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Ricardo Lanziano <arpunk@fatelectron.net>
To: 9front@9front.org
Subject: [9front] [PATCH] upas/marshal: honor username headers
Date: Thu, 25 Aug 2022 13:58:15 -0500	[thread overview]
Message-ID: <D6376F549EA3562BAF2984BC199945E7@fatelectron.net> (raw)

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");

             reply	other threads:[~2022-08-25 19:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-25 18:58 Ricardo Lanziano [this message]
2022-09-06  3:19 ` ori
2022-09-08  4:10   ` unobe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=D6376F549EA3562BAF2984BC199945E7@fatelectron.net \
    --to=arpunk@fatelectron.net \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).