> /sys/src/cmd/unix/u9fs/authp9any.c
> authp9any.c.orig:369,375 -
> /n/sources/patch/u9fs-afid/authp9any.c:369,378
> fprint(2, "p9anyattach: afid %d state %d\n", rx->afid,
> sp->state);
> if (sp->state == Established && strcmp(rx->uname, sp->uname) == > 0
> && strcmp(rx->aname, sp->aname) == 0)
> + {
> + rx->uname = sp->t.suid; /* will be valid until
> afid is clunked */
> return nil;
> + }
> return "authentication failed";
> }
>
without commont on correctness, braces go on the
line on which the if condition ends.
- erik