- Notifications
You must be signed in to change notification settings - Fork5
Commitb777be0
committed
Un-break peer authentication.
Commit613c6d2 sloppily replaced alookup of the UID obtained from getpeereid() with a lookup of theserver'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 onWindows as well as non-Windows. I don't think any callers actuallydepend on this ATM, but we should be consistent across platforms.1 parente5a452b commitb777be0
2 files changed
+10
-8
lines changedLines changed: 8 additions & 8 deletions
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 |
| |
|
Lines changed: 2 additions & 0 deletions
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
Comments
(0)