code: plan9front

Download patch

ref: fb88cab9ff74bb0be89914f88c12f918c7e01515
parent: 245264e3716c46a5278f705c90d9cb24afca0924
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Feb 20 16:01:48 EST 2021

upas/marshal: use login instead of user (thanks sirjofri)

User is the upasname, and is unlikely to exist when we save
the message to the outbox. We should use the login name instead.

--- a/sys/src/cmd/upas/marshal/marshal.c
+++ b/sys/src/cmd/upas/marshal/marshal.c
@@ -1088,7 +1088,7 @@
 			case 0:
 				close(pfd[0]);
 				/* BOTCH; "From " time gets changed */
-				f = foldername(nil, user, rcvr);
+				f = foldername(nil, login, rcvr);
 				b = openfolder(f, time(0));
 				if(b != nil){
 					fd = Bfildes(b);