Commit b777be0
committed
Un-break peer authentication.
Commit 613c6d2 sloppily replaced a
lookup of the UID obtained from getpeereid() with a lookup of the
server's own user name, thus totally destroying peer authentication.
Revert. Per report from Christoph Berg.
In passing, make sure get_user_name() zeroes *errstr on success on
Windows as well as non-Windows. I don't think any callers actually
depend on this ATM, but we should be consistent across platforms.1 parent e5a452b commit b777be0
2 files changed
+10
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
1560 | 1559 | | |
1561 | 1560 | | |
1562 | 1561 | | |
1563 | | - | |
1564 | | - | |
| 1562 | + | |
1565 | 1563 | | |
1566 | 1564 | | |
1567 | 1565 | | |
| |||
1578 | 1576 | | |
1579 | 1577 | | |
1580 | 1578 | | |
1581 | | - | |
1582 | | - | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
1583 | 1582 | | |
1584 | | - | |
1585 | | - | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
1586 | 1586 | | |
1587 | 1587 | | |
1588 | 1588 | | |
1589 | | - | |
| 1589 | + | |
1590 | 1590 | | |
1591 | 1591 | | |
1592 | 1592 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
0 commit comments