summaryrefslogtreecommitdiff
path: root/sys/src
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2021-02-20 13:01:48 -0800
committerOri Bernstein <ori@eigenstate.org>2021-02-20 13:01:48 -0800
commitfb88cab9ff74bb0be89914f88c12f918c7e01515 (patch)
treefada012e1c388979730cbd4c4f454462e5df1e42 /sys/src
parent245264e3716c46a5278f705c90d9cb24afca0924 (diff)
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.
Diffstat (limited to 'sys/src')
-rw-r--r--sys/src/cmd/upas/marshal/marshal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/upas/marshal/marshal.c b/sys/src/cmd/upas/marshal/marshal.c
index 893775b03..68f9c4f6b 100644
--- a/sys/src/cmd/upas/marshal/marshal.c
+++ b/sys/src/cmd/upas/marshal/marshal.c
@@ -1088,7 +1088,7 @@ sendmail(Addr *to, Addr *cc, Addr *bcc, int *pid, char *rcvr)
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);