]> git.lizzy.rs Git - plan9front.git/commitdiff
upas/marshal: use login instead of user (thanks sirjofri)
authorOri Bernstein <ori@eigenstate.org>
Sat, 20 Feb 2021 21:01:48 +0000 (13:01 -0800)
committerOri Bernstein <ori@eigenstate.org>
Sat, 20 Feb 2021 21:01:48 +0000 (13:01 -0800)
User is the upasname, and is unlikely to exist when we save
the message to the outbox. We should use the login name instead.

sys/src/cmd/upas/marshal/marshal.c

index 893775b039494c3b7069a64e254d010e8f57fd27..68f9c4f6b373ba438dbc73e3522960aa7a90cb3d 100644 (file)
@@ -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);